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.
This commit is contained in:
		| @@ -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 $$?; \ | ||||
|   | ||||
| @@ -1 +1 @@ | ||||
| BOOT+=		hostid net.lo0 newsyslog savecore syslogd swap-blk | ||||
| BOOT+=		hostid newsyslog savecore syslogd swap-blk | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user