Umount the 2 USB keys before shudown, fix #16.

Make sure the music/LED are still there as long as possible.
When the USB keys are umounted, the system is totally static and could
be plugged off.
pull/10/head
Raphaël Vinot 2013-10-13 19:14:07 +02:00
parent 4ae5fff4c9
commit 1259176907
1 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,8 @@ if [ -e /dev/sda ]; then
# avoid possibe misuse
/sbin/ifconfig eth0 down
./init.sh
umount -r /dev/sda
umount -r /dev/sdb
/sbin/shutdown -h now
fi
fi