fs

morpheus filesystem files
git clone git://git.2f30.org/fs.git
Log | Files | Refs

commit 9c26385f1f18d2bec6ac5b9d4276ef8413c7b298
parent f02f574689886e02d11ac3f66f956f9e2626d089
Author: sin <sin@2f30.org>
Date:   Tue Sep 17 16:35:27 +0100

Add reboot

Diffstat:
bin/reboot | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)
diff --git a/bin/reboot b/bin/reboot @@ -0,0 +1,14 @@ +#!/bin/sh + +. /etc/rc.conf + +echo $SVC | sed 's/ /\n/g' | tac | while read s; do + echo Stopping $s + /etc/rc.d/$s stop +done + +echo Remounting root as read-only +mount -o remount, ro / +echo Syncing... +sync +halt -r