projects
/
rrq
/
rrqnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version change
[rrq/rrqnet.git]
/
rrqnet-ifupdown.sh
diff --git
a/rrqnet-ifupdown.sh
b/rrqnet-ifupdown.sh
index 6658929f4bd100440062959015f3e078561f05bf..b36131eec9f8c8716615bc535e0df9c7ffa3720c 100755
(executable)
--- a/
rrqnet-ifupdown.sh
+++ b/
rrqnet-ifupdown.sh
@@
-26,7
+26,7
@@
# rrqnet_bridge <bridge>
# rrqnet_dhcp <options>
# rrqnet_bridge <bridge>
# rrqnet_dhcp <options>
-: ${RRQDAEMON:=/usr/
local/
sbin/rrqnet}
+: ${RRQDAEMON:=/usr/sbin/rrqnet}
: ${NAME:=rrqnet-${IFACE}}
#function
: ${NAME:=rrqnet-${IFACE}}
#function
@@
-86,7
+86,7
@@
start_cable_pre_up() {
start_cable_post_up() {
case "$IF_RRQNET_DHCP" in
dhclient*)
start_cable_post_up() {
case "$IF_RRQNET_DHCP" in
dhclient*)
- start_dhclient IF_RRQNET_DHCP
+ start_dhclient
$
IF_RRQNET_DHCP
;;
*)
: # no or unkown dhcp option
;;
*)
: # no or unkown dhcp option
@@
-104,11
+104,12
@@
stop_cable_pre_down() {
: # no or unkown dhcp option
;;
esac
: # no or unkown dhcp option
;;
esac
+ daemon -n $NAME --stop
}
#function
stop_cable_post_down() {
}
#function
stop_cable_post_down() {
- daemon -n $NAME --stop
+ ip link del $IFACE
}
# main script body
}
# main script body