Juggle the Makefiles so that sh knows about NET_LO
This commit is contained in:
parent
0176ee89ed
commit
cc96c0933d
1
Makefile
1
Makefile
@ -10,7 +10,6 @@ SUBDIR = conf.d doc etc init.d man net runlevels sh src
|
||||
|
||||
TOPDIR = .
|
||||
include $(TOPDIR)/default.mk
|
||||
include $(TOPDIR)/Makefile.$(OS)
|
||||
|
||||
install::
|
||||
$(INSTALL) -d $(DESTDIR)$(RC_LIB)/init.d
|
||||
|
@ -5,6 +5,9 @@ BIN = gendepends.sh net.sh runscript.sh
|
||||
TOPDIR = ..
|
||||
include $(TOPDIR)/default.mk
|
||||
|
||||
# To get NET_LO
|
||||
include Makefile.$(OS)
|
||||
|
||||
install::
|
||||
@# Handle lib correctly
|
||||
if test $(LIB) != "lib"; then \
|
||||
@ -14,7 +17,7 @@ install::
|
||||
rm -f $(DESTDIR)/$(RC_LIB)/sh/rc-functions.sh.bak; \
|
||||
fi
|
||||
@# Provide an init script for the loopback interface
|
||||
ln -snf /$(RC_LIB)/sh/net.sh $(DESTDIR)/etc/init.d/$(NET_LO) || exit $$?
|
||||
ln -snf $(RC_LIB)/sh/net.sh $(DESTDIR)/etc/init.d/$(NET_LO) || exit $$?
|
||||
@# Put functions.sh into the init.d dir so 3rd part apps don't have to
|
||||
@# be multilib aware
|
||||
ln -snf /$(RC_LIB)/sh/functions.sh $(DESTDIR)/etc/init.d || exit $$?
|
||||
ln -snf $(RC_LIB)/sh/functions.sh $(DESTDIR)/etc/init.d || exit $$?
|
||||
|
Loading…
Reference in New Issue
Block a user