Autorecover After Improper Shutdown in Puppy Linux …. catetan ben ra lali
Use the script below and insert it to rc.sysinit script in t /etc/rc.d folder after t “Making filesystem usabel” part,
############ clean-shutdown-detect ##############
#Detect and clean improper shutdownif [ -f /tmp/RUNNING ];then
echo -n “Cleaning up after Improper Shutdown….” >/dev/console
rm -f /var/log/X*
rm -f /tmp/RUNNING
rm -rf /tmp/*
rm -f /var/lock/LCK*
rm -f /var/run/*.pid
rm -rf /root/tmp 2>/dev/null
rm -rf /root/.thumbnails/* 2>/dev/null
[ -f /etc/rc.d/MORESFS ] && rm /etc/rc.d/MORESFS
status_func 0
fi
bodi :: Mar.07.2010 :: Info :: No Comments »






