mirror of
https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git
synced 2023-10-10 13:37:40 +02:00
use absolute path to rfkill and ip
This commit is contained in:
parent
7ab6dfb121
commit
9b2ff78449
@ -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 ""
|
||||
|
Loading…
Reference in New Issue
Block a user