Added initscripts-2009.01 template.

This package contains all files required for booting the lsXL
linux system built through xbps.

Currently it uses the NetBSD rc.d(8) system, sysvinit and
modified BSD style scripts modified from Arch linux.

--HG--
extra : convert_revision : 4584be26dd672ba33f9b1d76534a22d4715664ea
This commit is contained in:
Juan RP
2009-03-06 05:17:46 +01:00
parent d5426651e8
commit ed07259681
27 changed files with 1671 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#!/bin/sh
#
# PROVIDE: net_loopback
# REQUIRE: SERVERS
# BEFORE: checkfs
$_rc_subr_loaded . /etc/rc.subr
name="net_loopback"
start_cmd="loopback_start"
stop_cmd=":"
loopback_start()
{
if [ -d /sys/class/net/lo ]; then
echo -n "=> Bringing up loopback interface... "
ifconfig lo 127.0.0.1 up
show_rval
fi
}
load_rc_config $name
run_rc_command "$1"