diff options
author | Roy Marples <roy@marples.name> | 2009-04-16 23:47:23 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2009-04-16 23:47:23 +0000 |
commit | 6027b0ed7d1791a363004ec5b77ec7e866fc8bc9 (patch) | |
tree | f4d8a33beb871f2f90a16de1ec742cd96bcb2232 /runlevels | |
parent | 95d954e7b58e55534f393a1249db2becf74ee9f9 (diff) |
Add a new init script - network
This simply assigns static addresses and an optional default route.
It's possible to add external commands as well, so to create a bonded interface.
Hopefully we can add a few examples to satisfy most of the old net.lo, which
is no longer installed into boot by default.
Diffstat (limited to 'runlevels')
-rw-r--r-- | runlevels/Makefile | 3 | ||||
-rw-r--r-- | runlevels/Makefile.BSD | 2 | ||||
-rw-r--r-- | runlevels/Makefile.Linux | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/runlevels/Makefile b/runlevels/Makefile index fb882d94..766a2cf3 100644 --- a/runlevels/Makefile +++ b/runlevels/Makefile @@ -1,4 +1,4 @@ -BOOT= bootmisc fsck hostname localmount \ +BOOT= bootmisc fsck hostname localmount network \ root swap sysctl urandom DEFAULT= local netmount SHUTDOWN= savecache @@ -32,7 +32,6 @@ install: ${INSTALL} -d ${BOOTDIR} || exit $$?; \ for x in ${BOOT}; do \ if test -n "${PREFIX}"; then \ - test "$$x" = "net.lo" -o "$$x" = "net.lo0" && continue; \ grep -q "keyword .*noprefix" ${INITDIR}/"$$x" && continue; \ fi; \ ln -snf ${PREFIX}/etc/init.d/"$$x" ${BOOTDIR}/"$$x" || exit $$?; \ diff --git a/runlevels/Makefile.BSD b/runlevels/Makefile.BSD index c750e4f3..ffa758c1 100644 --- a/runlevels/Makefile.BSD +++ b/runlevels/Makefile.BSD @@ -1 +1 @@ -BOOT+= hostid net.lo0 newsyslog savecore syslogd swap-blk +BOOT+= hostid newsyslog savecore syslogd swap-blk diff --git a/runlevels/Makefile.Linux b/runlevels/Makefile.Linux index 9876cd2b..251c6b8b 100644 --- a/runlevels/Makefile.Linux +++ b/runlevels/Makefile.Linux @@ -1,3 +1,3 @@ SYSINIT+= devfs dmesg -BOOT+= hwclock keymaps modules mtab net.lo procfs termencoding +BOOT+= hwclock keymaps modules mtab procfs termencoding SHUTDOWN+= killprocs mount-ro |