pkgs/ap: don't install wifi-on-link.sh on ap58
This commit is contained in:
parent
01933d17ca
commit
e6651c440d
|
@ -1783,6 +1783,7 @@
|
|||
};
|
||||
priv43.type = "bridge";
|
||||
};
|
||||
wifiOnLink.enable = false;
|
||||
wifi = {
|
||||
"pci0000:00/0000:00:00.0" = {
|
||||
channel = 100;
|
||||
|
|
|
@ -464,6 +464,13 @@ let
|
|||
}
|
||||
));
|
||||
};
|
||||
wifiOnLink.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
description = ''
|
||||
Install the wifi-on-link.sh script on OpenWRT devices.
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -307,10 +307,11 @@ in ''
|
|||
|
||||
uci commit
|
||||
|
||||
${lib.optionalString hostConfig.wifiOnLink.enable ''
|
||||
# Cronjob that makes sure WiFi is only visible when server with all
|
||||
# the gateways is reachable
|
||||
cat >/etc/crontabs/root <<__CRON__
|
||||
* * * * * /usr/sbin/wifi-on-link.sh
|
||||
#* * * * * /usr/sbin/wifi-on-link.sh
|
||||
__CRON__
|
||||
cat >/usr/sbin/wifi-on-link.sh <<__SH__
|
||||
#!/bin/sh
|
||||
|
@ -340,6 +341,7 @@ in ''
|
|||
__SH__
|
||||
chmod a+rx /usr/sbin/wifi-on-link.sh
|
||||
/etc/init.d/cron restart
|
||||
''}
|
||||
|
||||
for svc in dnsmasq uhttpd ; do
|
||||
rm -f /etc/rc.d/*\$svc
|
||||
|
|
Loading…
Reference in New Issue