1 Commits

Author SHA1 Message Date
Jay Larson
508121866c The following changes were made:
* Added dash as dependency
  * Added URL
  * Added REPO
  * Moved usher from bash to /bin/sh
  * Removed TARGET from usher
  * Tweaked SRC Makefile to work with /bin/sh
2018-03-27 09:17:00 -05:00
3 changed files with 9 additions and 7 deletions

View File

@@ -8,13 +8,14 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
DEPENDS = dhclient,iproute2 DEPENDS = dash,dhclient,iproute2
ARCH = none ARCH = none
URL = URL = http://snaplinux.org/
REPO = core
BRIEF = Scripts for starting and stopping network interfaces BRIEF = Scripts for starting and stopping network interfaces
DESC = Scripts which use the iproute2 tools for automatically starting and \ DESC = Scripts which use the iproute2 tools for automatically starting and \
stopping network devices during startup. stopping network devices during startup.
SNAPVER = 0 SNAPVER = 1
ARCHIVE := ARCHIVE :=
SRCDIR := $(PWD)/SRC/iftools SRCDIR := $(PWD)/SRC/iftools

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/bin/sh
set -e set -e
@@ -7,8 +7,8 @@ case $1 in
exit 0 exit 0
;; ;;
postinst) postinst)
if [ ! -f ${TARGET}/etc/network.conf ]; then if [ ! -f /etc/network.conf ]; then
cp ${TARGET}/usr/share/iftools/network.conf ${TARGET}/etc/network.conf cp /usr/share/iftools/network.conf /etc/network.conf
fi fi
;; ;;
prerm) prerm)

View File

@@ -2,7 +2,8 @@ dirs:
install -d -v -m 755 $(DESTDIR)/etc/init.d install -d -v -m 755 $(DESTDIR)/etc/init.d
install -d -v -m 755 $(DESTDIR)/etc/network.d install -d -v -m 755 $(DESTDIR)/etc/network.d
install -d -v -m 755 $(DESTDIR)/usr/share/iftools install -d -v -m 755 $(DESTDIR)/usr/share/iftools
install -d -v -m 755 $(DESTDIR)/usr/share/man/man{5,8} install -d -v -m 755 $(DESTDIR)/usr/share/man/man5
install -d -v -m 755 $(DESTDIR)/usr/share/man/man8
install -d -v -m 755 $(DESTDIR)/sbin install -d -v -m 755 $(DESTDIR)/sbin
files: files: