X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Finit.d%2Fgrml-reboot;h=882246c5e723cf59a00da4406d85fa7729b7219b;hb=0991fd358c727286d2568e548aa4fb426cb0ea02;hp=a3251f51f753d2b8dd122134904d41554fddc460;hpb=ba4444d29d3c62ceb7c716c921c9a52633793441;p=grml-etc.git diff --git a/etc/init.d/grml-reboot b/etc/init.d/grml-reboot index a3251f5..882246c 100755 --- a/etc/init.d/grml-reboot +++ b/etc/init.d/grml-reboot @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Klaus Knopper, (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Sam Mär 31 13:36:51 CEST 2007 [mika] +# Latest change: Mon Jun 04 23:32:07 CEST 2007 [mika] ################################################################################ export PATH=/sbin:/bin:/usr/bin:/usr/sbin @@ -55,6 +55,9 @@ echo "0" > /proc/sys/kernel/printk # We may kill our network connection here before unmounting NFS. Bad luck. # poweroff pcmcia devices if [ -d /sys/bus/pcmcia -a -x /sbin/pccardctl ] ; then + # make sure we don't lose any data, see issue219 for details + log_begin_msg "Syncing devices..." + sync ; log_end_msg $? log_begin_msg "Shutting down PCMCIA devices..." pccardctl eject >/dev/null 2>&1 log_end_msg $? @@ -177,7 +180,7 @@ if [ -z "$INSTALLED" -a -z "$NOPROMPT" ]; then umount -l /cdrom [ -n "$CDROM" -a -z "$NOEJECT" ] && eject -p "$CDROM" 2>/dev/null echo "" - echo "${CYAN}Please remove CD, close cdrom drive and hit return.${NORMAL}" + echo "${GREEN}Please remove CD, close cdrom drive and hit return.${NORMAL}" read fi fi