kernel-module-qualcomm: don't run if 'wireless' node missing on DT
We want to run the script if the 'wireless' node exits on the device tree. This is to facilitate disabling of the wireless by removing that node. Signed-off-by: Hector Palacios <hector.palacios@digi.com> https://jira.digi.com/browse/DEL-6616
This commit is contained in:
parent
88eba082ef
commit
80b8fc8be4
|
|
@ -21,6 +21,9 @@ log() {
|
||||||
printf "<$1>qca6564: $2\n" >/dev/kmsg
|
printf "<$1>qca6564: $2\n" >/dev/kmsg
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Do nothing if the wireless node does not exist on the device tree
|
||||||
|
[ -d "/proc/device-tree/wireless" ] || exit 0
|
||||||
|
|
||||||
# Do nothing if the module is already loaded
|
# Do nothing if the module is already loaded
|
||||||
grep -qws 'wlan' /proc/modules && exit 0
|
grep -qws 'wlan' /proc/modules && exit 0
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue