diff options
author | Stijn Tintel <stijn@linux-ipv6.be> | 2020-06-08 06:03:05 +0300 |
---|---|---|
committer | Stijn Tintel <stijn@linux-ipv6.be> | 2020-06-08 08:59:02 +0300 |
commit | 8a858363b00d9496a04ff381d65301b1d529faee (patch) | |
tree | 5b7471fb45a3dc46c533b1cefd4061f253b59469 | |
parent | c37487a63db365761cdd00c6ce3410d265b85aa9 (diff) | |
download | upstream-8a858363b00d9496a04ff381d65301b1d529faee.tar.gz upstream-8a858363b00d9496a04ff381d65301b1d529faee.tar.bz2 upstream-8a858363b00d9496a04ff381d65301b1d529faee.zip |
hostapd: silence rm
When bringing up wifi the first time after boot, these warnings appear:
netifd: radio0 (1370): rm: can't remove '/var/run/hostapd-wlan0.psk': No such file or directory
netifd: radio0 (1370): rm: can't remove '/var/run/hostapd-wlan0.vlan': No such file or directory
Silence them by adding the "-f" option to rm.
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: John Crispin <john@phrozen.org>
-rw-r--r-- | package/network/services/hostapd/files/hostapd.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh index f04d8229a7..c9c0507120 100644 --- a/package/network/services/hostapd/files/hostapd.sh +++ b/package/network/services/hostapd/files/hostapd.sh @@ -273,7 +273,7 @@ hostapd_set_vlan_file() { hostapd_set_vlan() { local ifname="$1" - rm /var/run/hostapd-${ifname}.vlan + rm -f /var/run/hostapd-${ifname}.vlan for_each_vlan hostapd_set_vlan_file ${ifname} } @@ -291,7 +291,7 @@ hostapd_set_psk_file() { hostapd_set_psk() { local ifname="$1" - rm /var/run/hostapd-${ifname}.psk + rm -f /var/run/hostapd-${ifname}.psk for_each_station hostapd_set_psk_file ${ifname} } |