diff options
author | Florian Fainelli <florian@openwrt.org> | 2006-02-08 14:08:21 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2006-02-08 14:08:21 +0000 |
commit | 37de0b4c7e287db4046db48472135580ab6d2e8f (patch) | |
tree | e7a1db9d50612f3d814bf34ebef6bf15484d36b6 /package/ez-ipupdate/files | |
parent | 1d50d3360a75f4a5c86bc384e8f907fec3be91fa (diff) | |
download | upstream-37de0b4c7e287db4046db48472135580ab6d2e8f.tar.gz upstream-37de0b4c7e287db4046db48472135580ab6d2e8f.tar.bz2 upstream-37de0b4c7e287db4046db48472135580ab6d2e8f.zip |
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/openwrt@3189 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ez-ipupdate/files')
-rw-r--r-- | package/ez-ipupdate/files/ez-ipupdate.hotplug | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/package/ez-ipupdate/files/ez-ipupdate.hotplug b/package/ez-ipupdate/files/ez-ipupdate.hotplug index 3f27c140af..56a054b4ac 100644 --- a/package/ez-ipupdate/files/ez-ipupdate.hotplug +++ b/package/ez-ipupdate/files/ez-ipupdate.hotplug @@ -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 & + } +} |