use absolute path to rfkill and ip

This commit is contained in:
Jan Schneider 2018-03-31 10:44:53 +02:00
parent 7ab6dfb121
commit 9b2ff78449
1 changed files with 3 additions and 3 deletions

View File

@ -1553,9 +1553,9 @@ proc ::rmupdate::install_addon {{addon_id ""} {download_url ""}} {
proc ::rmupdate::wlan_scan {{as_json 0} {device "wlan0"}} {
array set ssids {}
catch { exec rfkill unblock 0 }
catch { exec rfkill unblock 1 }
catch { exec ip link set $device up }
catch { exec /usr/sbin/rfkill unblock 0 }
catch { exec /usr/sbin/rfkill unblock 1 }
catch { exec /sbin/ip link set $device up }
set data [exec /usr/sbin/iw $device scan]
set cur_ssid ""
set cur_signal ""