description "Umount all Filesystems, and turn off swap" author "Harald Kueller " version 1.0 emits none special stop on (runlevel[06] and (stopped udev)) stop on runlevel 6 stop on runlevel 0 console none script source /etc/init/functions echo -n "Deactivating swap..." /sbin/swapoff -a evaluate_retval echo -n "Unmounting file systems..." /bin/umount -a -r evaluate_retval end script