2008-05-03 17:03:02 +00:00
|
|
|
# rcS - runlevel compatibility
|
|
|
|
#
|
|
|
|
# This task runs the old sysv-rc startup scripts.
|
|
|
|
|
|
|
|
start on stopped udevstart
|
|
|
|
|
|
|
|
#stop on runlevel
|
|
|
|
|
|
|
|
console logged
|
|
|
|
|
|
|
|
# Note: there can be no previous runlevel here, if we have one it's bad
|
|
|
|
# information (we enter rc1 not rcS for maintenance). Run /etc/init.d/rc
|
|
|
|
# without information so that it defaults to previous=N runlevel=S.
|
|
|
|
pre-start script
|
2010-01-28 13:58:15 +00:00
|
|
|
source /etc/event.d/functions
|
2008-05-03 17:03:02 +00:00
|
|
|
/sbin/ifconfig lo 127.0.0.1
|
2010-01-28 13:58:15 +00:00
|
|
|
status_message "Setup local net..."
|
2008-05-03 17:03:02 +00:00
|
|
|
end script
|
|
|
|
|
|
|
|
post-stop script
|
2010-01-28 13:58:15 +00:00
|
|
|
source /etc/event.d/functions
|
2008-05-03 17:03:02 +00:00
|
|
|
/sbin/ifconfig lo down
|
2010-01-28 13:58:15 +00:00
|
|
|
status_message "Remove Local Net..."
|
2008-05-03 17:03:02 +00:00
|
|
|
end script
|