Skip to content

Commit

Permalink
Use absolute paths in generic script.
Browse files Browse the repository at this point in the history
git-svn-id: http://madwimax.googlecode.com/svn/trunk@143 195ec174-b24d-11dd-8bee-0be8dff76351
  • Loading branch information
ago committed Apr 8, 2009
1 parent 8880e95 commit 1d6cb4b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions scripts/events/event.sh.generic.in
Expand Up @@ -6,28 +6,28 @@ if-create)
;;
if-up)
if [ -x /sbin/dhclient3 ]; then
dhclient3 -nw -pf /var/run/dhclient."$2".pid -lf /var/lib/dhcp3/dhclient."$2".leases "$2" >/dev/null 2>&1
/sbin/dhclient3 -nw -pf /var/run/dhclient."$2".pid -lf /var/lib/dhcp3/dhclient."$2".leases "$2" >/dev/null 2>&1
elif [ -x /sbin/dhclient ]; then
dhclient -pf /var/run/dhclient."$2".pid -lf /var/lib/dhcp/dhclient."$2".leases "$2"
/sbin/dhclient -pf /var/run/dhclient."$2".pid -lf /var/lib/dhcp/dhclient."$2".leases "$2"
elif [ -x /sbin/pump ]; then
pump -i "$2"
/sbin/pump -i "$2"
elif [ -x /sbin/udhcpc ]; then
udhcpc -n -p /var/run/udhcpc."$2".pid -i "$2"
/sbin/udhcpc -n -p /var/run/udhcpc."$2".pid -i "$2"
elif [ -x /sbin/dhcpcd ]; then
dhcpcd "$2"
/sbin/dhcpcd "$2"
fi
;;
if-down)
if [ -x /sbin/dhclient3 ]; then
dhclient3 -r -pf /var/run/dhclient."$2".pid -lf /var/lib/dhcp3/dhclient."$2".leases "$2" >/dev/null 2>&1
/sbin/dhclient3 -r -pf /var/run/dhclient."$2".pid -lf /var/lib/dhcp3/dhclient."$2".leases "$2" >/dev/null 2>&1
elif [ -x /sbin/dhclient ]; then
cat /var/run/dhclient."$2".pid | xargs -i kill -TERM {}
elif [ -x /sbin/pump ]; then
pump -i "$2" -r
/sbin/pump -i "$2" -r
elif [ -x /sbin/udhcpc ]; then
cat /var/run/udhcpc."$2".pid | xargs -i kill -TERM {}
elif [ -x /sbin/dhcpcd ]; then
dhcpcd -k "$2"
/sbin/dhcpcd -k "$2"
fi
;;
if-release)
Expand Down

0 comments on commit 1d6cb4b

Please sign in to comment.