Proper fix for #16.

/etc/mtab -> /proc/mounts to make sure umount knows the fs to work on.
pull/10/head
Raphaël Vinot 2013-10-17 10:56:44 +02:00
parent 1259176907
commit a6205eff13
3 changed files with 5 additions and 4 deletions

View File

@ -24,8 +24,6 @@ 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

View File

@ -16,13 +16,13 @@ clean(){
${SYNC}
# Cleanup source
${SUDO} ${UMOUNT} ${SRC} || true
${SUDO} ${UMOUNT} ${SRC}
rm -rf ${SRC}
# Cleanup destination
rm -rf ${TEMP}
rm -rf ${ZIPTEMP}
${SUDO} ${UMOUNT} ${DST} || true
${SUDO} ${UMOUNT} ${DST}
rm -rf ${DST}
exit

View File

@ -11,3 +11,6 @@ apt-get install libreoffice p7zip-full libfontforge1 timidity
dpkg -i libpoppler37*.deb pdf2htmlex*.deb
chown -R kitten:kitten /home/kitten
rm /etc/mtab
ln -s /proc/mounts /etc/mtab