mirror of https://github.com/CIRCL/Circlean
Proper fix for #16.
/etc/mtab -> /proc/mounts to make sure umount knows the fs to work on.pull/10/head
parent
1259176907
commit
a6205eff13
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue