diff --git a/debian/resources/reboot_phones.sh b/debian/resources/reboot_phones.sh index 17e6611..8480d34 100755 --- a/debian/resources/reboot_phones.sh +++ b/debian/resources/reboot_phones.sh @@ -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