Update reboot_phones.sh
This commit is contained in:
parent
50032b722d
commit
10592c0453
|
|
@ -21,9 +21,17 @@ ARR=()
|
|||
IFS=","
|
||||
INPUT=$FILE
|
||||
|
||||
#Loop through the registrations and reboot
|
||||
#loop through the registrations and reboot
|
||||
[ ! -f $INPUT ] &while read reg_user realm extra
|
||||
do
|
||||
#option reboot all phones
|
||||
if [ ."$domain" = ."all" ]; then
|
||||
eval 'fs_cli -x "luarun app.lua event_notify internal reboot $reg_user@$realm $vendor"'
|
||||
if [ "$pausetime" > 0 ]; then
|
||||
sleep $pausetime
|
||||
fi
|
||||
fi
|
||||
#option reboot phones on a specific domain
|
||||
if [ ."$realm" = ."$domain" ]; then
|
||||
eval 'fs_cli -x "luarun app.lua event_notify internal reboot $reg_user@$realm $vendor"'
|
||||
if [ "$pausetime" > 0 ]; then
|
||||
|
|
|
|||
Loading…
Reference in New Issue