Update reboot_phones.sh
This commit is contained in:
parent
10592c0453
commit
8aa1d2147b
|
|
@ -26,6 +26,7 @@ INPUT=$FILE
|
|||
do
|
||||
#option reboot all phones
|
||||
if [ ."$domain" = ."all" ]; then
|
||||
echo "reboot: $reg_user@$realm $vendor\n"
|
||||
eval 'fs_cli -x "luarun app.lua event_notify internal reboot $reg_user@$realm $vendor"'
|
||||
if [ "$pausetime" > 0 ]; then
|
||||
sleep $pausetime
|
||||
|
|
@ -33,7 +34,9 @@ do
|
|||
fi
|
||||
#option reboot phones on a specific domain
|
||||
if [ ."$realm" = ."$domain" ]; then
|
||||
echo "reboot: $reg_user@$realm $vendor\n"
|
||||
eval 'fs_cli -x "luarun app.lua event_notify internal reboot $reg_user@$realm $vendor"'
|
||||
echo ""
|
||||
if [ "$pausetime" > 0 ]; then
|
||||
sleep $pausetime
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue