From 2d95c9a756c4c7b9301e04c274c3b139e0d1aef4 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 10 Jan 2008 23:22:46 +0000 Subject: Loads of NetBSD tweaks here. --- etc.BSD/rc.shutdown | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'etc.BSD/rc.shutdown') diff --git a/etc.BSD/rc.shutdown b/etc.BSD/rc.shutdown index 691e94ad..6f3e852f 100644 --- a/etc.BSD/rc.shutdown +++ b/etc.BSD/rc.shutdown @@ -23,9 +23,6 @@ # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. -# Ensure we are called by init -[ "$PPID" = "1" ] || exit 0 - # Handle interrupts trap : SIGINT SIGQUIT @@ -41,8 +38,8 @@ export LD_LIBRARY_PATH="/lib${LD_LIBRARY_PATH:+:}${LDLIBRARY_PATH}" # This block should 'translate' from the way init calls it to the way it would # be called by sysvinit on linux. case "$1" in - reboot) export RUNLEVEL=6;; - shutdown) export RUNLEVEL=0;; - single) export RUNLEVEL=S;; + reboot) export RUNLEVEL=6;; + shutdown) export RUNLEVEL=0;; + single) export RUNLEVEL=S;; esac exec /sbin/rc "$1" -- cgit v1.2.3