From a2d55f8d3477adb75127a540c6d29df62ca400e5 Mon Sep 17 00:00:00 2001 From: freesource Date: Fri, 21 Dec 2001 05:06:36 +0000 Subject: [PATCH] Does a clean umount, so fsck doesn't complain, but leave using fsck up to the user, since some fs types may not like it. --- yard/replacements/etc/init.d/halt.example | 3 ++- yard/replacements/etc/init.d/reboot.example | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/yard/replacements/etc/init.d/halt.example b/yard/replacements/etc/init.d/halt.example index f32c089..c64ff16 100755 --- a/yard/replacements/etc/init.d/halt.example +++ b/yard/replacements/etc/init.d/halt.example @@ -1,8 +1,9 @@ #! /bin/sh # -# $Id$ +# $Id: halt.example,v 1.1 2001/12/03 19:00:21 freesource Exp $ # # Used by Example.yard +mount -n -o remount,ro / halt -d -f -i -p diff --git a/yard/replacements/etc/init.d/reboot.example b/yard/replacements/etc/init.d/reboot.example index f59c814..4fb48fb 100755 --- a/yard/replacements/etc/init.d/reboot.example +++ b/yard/replacements/etc/init.d/reboot.example @@ -1,8 +1,10 @@ #! /bin/sh # -# $Id$ +# $Id: reboot.example,v 1.1 2001/12/03 19:00:21 freesource Exp $ # # Used by Example.yard +mount -n -o remount,ro / + echo -n "Rebooting... " reboot -d -f -i