|
|
|
@ -192,10 +192,9 @@ function check_at_command_queue()
|
|
|
|
|
# 1) get the available job numbers
|
|
|
|
|
# 2) remove empty lines (especially the last one)
|
|
|
|
|
# 3) check every associated command for the regexp
|
|
|
|
|
at -l | cut -f 1 -d " " | while read jobnum
|
|
|
|
|
do at -c $jobnum | sed '/^$/d' | tail -1 | grep -q "$1" && return 0
|
|
|
|
|
done
|
|
|
|
|
return 1
|
|
|
|
|
at -l | cut -f 1 | while read jobnum
|
|
|
|
|
do at -c $jobnum | sed '/^$/d' | tail -1
|
|
|
|
|
done | grep -q "$1"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -403,8 +402,8 @@ case "$ACTION" in
|
|
|
|
|
;;
|
|
|
|
|
update_ip_address )
|
|
|
|
|
# reconfigure the network interface to a new IP address
|
|
|
|
|
# wait for 15 seconds to finish present http requests
|
|
|
|
|
echo -n "sleep 15; ifconfig $NET_IFACE `get_config ip`" | at now
|
|
|
|
|
# wait for 5 seconds to finish present http requests
|
|
|
|
|
echo -n "sleep 5; ifconfig $NET_IFACE `config_get_value ip`" | at now
|
|
|
|
|
;;
|
|
|
|
|
crypto-mount )
|
|
|
|
|
mount_crypto
|
|
|
|
|