1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-26 00:24:03 +02:00

Removed init script as there is an hotplug one, check whether user configuration directive is properly set, change the numbering to 10 rather than 15

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3189 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2006-02-08 14:08:21 +00:00
parent a8b7ca268e
commit 378a18c0f3
2 changed files with 7 additions and 2 deletions

View File

@ -50,7 +50,7 @@ $(IPKG_EZIPUPDATE):
install -m0755 $(PKG_BUILD_DIR)/ez-ipupdate $(IDIR_EZIPUPDATE)/usr/sbin/
install -m0755 files/$(PKG_NAME).init $(IDIR_EZIPUPDATE)/etc/init.d/S80$(PKG_NAME)
install -m0755 files/$(PKG_NAME).conf $(IDIR_EZIPUPDATE)/etc/
install -m0755 files/$(PKG_NAME).hotplug $(IDIR_EZIPUPDATE)/etc/hotplug.d/iface/15-$(PKG_NAME)
install -m0755 files/$(PKG_NAME).hotplug $(IDIR_EZIPUPDATE)/etc/hotplug.d/iface/10-$(PKG_NAME)
$(STRIP) $(IDIR_EZIPUPDATE)/usr/sbin/*
$(IPKG_BUILD) $(IDIR_EZIPUPDATE) $(PACKAGE_DIR)

View File

@ -1 +1,6 @@
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && /usr/sbin/ez-ipupdate -c /etc/ez-ipupdate.conf &
PGM=ez-ipupdate
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
[ -e /etc/$PGM.conf ] && {
[ -n $(grep "user=" /etc/$PGM.conf | cut -d= -f2 | cut -d: -f1) ] && [ -n $(grep "user=" /etc/$PGM.conf | cut -d= -f2 | cut -d: -f2) ] && /usr/sbin/$PGM -c /etc/$PGM.conf &
}
}