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
|
[ -p /tmp/usteer-info ] || mkfifo /tmp/usteer-info
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
|
if [ ! -p /tmp/usteer-info ]; then
|
||||||
|
echo "/tmp/usteer-info went missing!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
DATA="$(cat /tmp/usteer-info)"
|
DATA="$(cat /tmp/usteer-info)"
|
||||||
cd /sys/class/net
|
cd /sys/class/net
|
||||||
for iface in wlan*; do
|
for iface in wlan*; do
|
||||||
|
|
Loading…
Reference in New Issue
Block a user