diff options
| author | Bastian Bittorf <bittorf@bluebottle.com> | 2013-09-25 16:42:24 +0200 |
|---|---|---|
| committer | Bastian Bittorf <bittorf@bluebottle.com> | 2013-09-25 16:42:24 +0200 |
| commit | af1b35bd8052643869b2658dfcc88b75029099f2 (patch) | |
| tree | e2acbc9c26b89c8a7cdef446efeb8cc8e8a2d356 | |
| parent | 8ffcb5e3e5c77e9af7e2bc410e18132c8d6c611c (diff) | |
olsrd: hotplug-script: bugfix: move function calls down, otherwise the functions are not known yet (thanks bluse-bluw for reporting)
| -rwxr-xr-x | olsrd/files/olsrd.hotplug.sh | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/olsrd/files/olsrd.hotplug.sh b/olsrd/files/olsrd.hotplug.sh index 8d88737..6d1641f 100755 --- a/olsrd/files/olsrd.hotplug.sh +++ b/olsrd/files/olsrd.hotplug.sh @@ -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 |
