summaryrefslogtreecommitdiff
path: root/etc.BSD
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-10 23:22:46 +0000
committerRoy Marples <roy@marples.name>2008-01-10 23:22:46 +0000
commit2d95c9a756c4c7b9301e04c274c3b139e0d1aef4 (patch)
tree4bd58fa2b4b8e01f5df1352ce7d06effe719b441 /etc.BSD
parent5aea880f8158945d2cc9390891de6af8ca0a9b28 (diff)
downloadopenrc-2d95c9a756c4c7b9301e04c274c3b139e0d1aef4.tar.gz
openrc-2d95c9a756c4c7b9301e04c274c3b139e0d1aef4.tar.bz2
openrc-2d95c9a756c4c7b9301e04c274c3b139e0d1aef4.tar.xz
Loads of NetBSD tweaks here.
Diffstat (limited to 'etc.BSD')
-rw-r--r--etc.BSD/rc3
-rw-r--r--etc.BSD/rc.shutdown9
2 files changed, 3 insertions, 9 deletions
diff --git a/etc.BSD/rc b/etc.BSD/rc
index 39b8452..d1bd176 100644
--- a/etc.BSD/rc
+++ b/etc.BSD/rc
@@ -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
-
# If $TERM is not set then assume default of cons25
# This gives us a nice colour boot :)
[ -z "$TERM" -o "$TERM" = "dumb" ] && export TERM="cons25"
diff --git a/etc.BSD/rc.shutdown b/etc.BSD/rc.shutdown
index 691e94a..6f3e852 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"