Don't busyloop when fifo file is missing
This commit is contained in:
parent
ab941d3770
commit
868e492014
|
@ -6,6 +6,11 @@ INTERVAL=60
|
|||
[ -p /tmp/usteer-info ] || mkfifo /tmp/usteer-info
|
||||
|
||||
while true; do
|
||||
if [ ! -p /tmp/usteer-info ]; then
|
||||
echo "/tmp/usteer-info went missing!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
DATA="$(cat /tmp/usteer-info)"
|
||||
cd /sys/class/net
|
||||
for iface in wlan*; do
|
||||
|
|
Loading…
Reference in New Issue