From: Michael Prokop Date: Mon, 4 Jun 2007 21:33:17 +0000 (+0200) Subject: /etc/init.d/grml-reboot: sync devices before deactivating pcmcia X-Git-Tag: 1.0.9 X-Git-Url: http://git.grml.org/?p=grml-etc.git;a=commitdiff_plain;h=0991fd358c727286d2568e548aa4fb426cb0ea02 /etc/init.d/grml-reboot: sync devices before deactivating pcmcia --- diff --git a/debian/changelog b/debian/changelog index ea755ed..f8db84a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +grml-etc (1.0.9) unstable; urgency=low + + * /etc/init.d/grml-reboot: sync devices before deactivating + pcmcia system devices. Thanks for the bugreport, Josef Teske! + [Closes: issue219] + + -- Michael Prokop Mon, 04 Jun 2007 23:32:18 +0200 + grml-etc (1.0.8) unstable; urgency=low * Adding /etc/skel/.channels/channels.conf-AT-vienna. diff --git a/etc/init.d/grml-reboot b/etc/init.d/grml-reboot index 990736b..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 14:02:06 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 $?