summaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2012-07-08 15:02:11 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2012-07-08 19:51:36 -0500
commit3e2018f5e9c5cfd4ba8066747fc02dac1ce22f59 (patch)
tree97e9c85c1f2a6a069976bd0062de540d2593b79c /init.d
parentdceeef9fe568bd633ed72ca995a1846a9dc20689 (diff)
downloadopenrc-3e2018f5e9c5cfd4ba8066747fc02dac1ce22f59.tar.gz
openrc-3e2018f5e9c5cfd4ba8066747fc02dac1ce22f59.tar.bz2
openrc-3e2018f5e9c5cfd4ba8066747fc02dac1ce22f59.tar.xz
Revert "Deprecate the network and staticroute scripts"
This reverts commit 5994e55937cbbb71b1c22ad829b77a1bcd8c3793. There are situations where these scripts can be useful, so I am bringing them back. Also, I want to start discussions about simplifying the OpenRC network stack.
Diffstat (limited to 'init.d')
-rw-r--r--init.d/Makefile14
-rw-r--r--init.d/network.in6
-rw-r--r--init.d/staticroute.in5
3 files changed, 10 insertions, 15 deletions
diff --git a/init.d/Makefile b/init.d/Makefile
index 863864f..82c73af 100644
--- a/init.d/Makefile
+++ b/init.d/Makefile
@@ -4,9 +4,15 @@ SRCS= bootmisc.in fsck.in hostname.in local.in localmount.in netmount.in \
swclock.in sysctl.in urandom.in ${SRCS-${OS}}
BIN= ${OBJS}
-INSTALLAFTER= _installafter_net.lo
-CLEANFILES+= net.lo
-TARGETS+= net.lo
+# Build our old net foo or not
+ifeq (${MKOLDNET},yes)
+_OLDNET= net.lo
+endif
+_NET_LO= ${_OLDNET}
+
+INSTALLAFTER= _installafter_${_NET_LO}
+CLEANFILES+= ${_NET_LO}
+TARGETS+= ${_NET_LO}
MK= ../mk
include ${MK}/os.mk
@@ -39,4 +45,4 @@ include ${MK}/scripts.mk
_installafter_: realinstall
_installafter_net.lo: realinstall
- ${INSTALL} -m ${BINMODE} net.lo ${DESTDIR}/${INITDIR}/${NET_LO-${OS}}
+ ${INSTALL} -m ${BINMODE} net.lo ${DESTDIR}/${INITDIR}/${NET_LO}
diff --git a/init.d/network.in b/init.d/network.in
index d65a6a9..20d46f4 100644
--- a/init.d/network.in
+++ b/init.d/network.in
@@ -219,12 +219,6 @@ start()
eend $?
fi
- ewarn
- ewarn "The $RC_SVCNAME script is deprecated and will be"
- ewarn "removed in the future."
- ewarn "Please use the net.* scripts to manage your network interfaces."
- ewarn
-
einfo "Starting network"
routeflush
if [ "$RC_UNAME" = "Linux" ]; then
diff --git a/init.d/staticroute.in b/init.d/staticroute.in
index 7ace659..91b61a4 100644
--- a/init.d/staticroute.in
+++ b/init.d/staticroute.in
@@ -93,11 +93,6 @@ do_routes()
start()
{
- ewarn
- ewarn "The $RC_SVCNAME script is deprecated and will be"
- ewarn "removed in the future."
- ewarn "Please use the net.* scripts to manage your network interfaces."
- ewarn
do_routes "Adding" "add"
}