Add a new "reload" command that reloads the netifd config as well
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38989
3c298f89-4303-0410-b956-
a3cf2f4a3e73
_wifi_updown "disable" "$1"
scan_wifi
_wifi_updown "enable" "$1"
}
_wifi_updown "disable" "$1"
scan_wifi
_wifi_updown "enable" "$1"
}
+wifi_reload() {
+ ubus call network reload
+ wifi_reload_legacy
+}
+
wifi_detect() {
for driver in ${2:-$DRIVERS}; do (
if eval "type detect_$driver" 2>/dev/null >/dev/null; then
wifi_detect() {
for driver in ${2:-$DRIVERS}; do (
if eval "type detect_$driver" 2>/dev/null >/dev/null; then
detect) wifi_detect "$2";;
status) ubus_wifi_cmd "status" "$2";;
reload) wifi_reload "$2";;
detect) wifi_detect "$2";;
status) ubus_wifi_cmd "status" "$2";;
reload) wifi_reload "$2";;
+ reload_legacy) wifi_reload_legacy "$2";;
--help|help) usage;;
*) wifi_updown "enable" "$2";;
esac
--help|help) usage;;
*) wifi_updown "enable" "$2";;
esac
reload_service() {
ubus call network reload
reload_service() {
ubus call network reload
+ /sbin/wifi reload_legacy