fs

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

commit f02f574689886e02d11ac3f66f956f9e2626d089
parent 6ce986001ac99b93590e733d73a415e03e367096
Author: sin <sin@2f30.org>
Date:   Tue Sep 17 15:57:19 +0100

Add poweroff

Diffstat:
bin/poweroff | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)
diff --git a/bin/poweroff b/bin/poweroff @@ -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