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:
23
templates/initscripts/files/rc.d/net_loopback
Executable file
23
templates/initscripts/files/rc.d/net_loopback
Executable 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"
|
||||
Reference in New Issue
Block a user