mirror of
https://github.com/openwrt/routing.git
synced 2025-12-21 19:14:31 +04:00
olsrd: hotplug-script: bugfix: move function calls down, otherwise the functions are not known yet (thanks bluse-bluw for reporting)
This commit is contained in:
@@ -1,15 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
case "$ACTION" in
|
||||
ifup)
|
||||
/etc/init.d/olsrd enabled && {
|
||||
olsrd_interface_needs_adding "$INTERFACE" "$DEVICE" && {
|
||||
/etc/init.d/olsrd restart
|
||||
}
|
||||
}
|
||||
;;
|
||||
esac
|
||||
|
||||
olsrd_list_configured_interfaces()
|
||||
{
|
||||
local i=0
|
||||
@@ -51,3 +41,13 @@ olsrd_interface_needs_adding()
|
||||
logger -t olsrd_hotplug -p daemon.debug "[OK] interface $INTERFACE not used for olsrd"
|
||||
return 1
|
||||
}
|
||||
|
||||
case "$ACTION" in
|
||||
ifup)
|
||||
/etc/init.d/olsrd enabled && {
|
||||
olsrd_interface_needs_adding "$INTERFACE" "$DEVICE" && {
|
||||
/etc/init.d/olsrd restart
|
||||
}
|
||||
}
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user