Debian Codegraph @

launcher/image/exit_script.sh

raw
1 #! /bin/bash
2
3 if [[ $EXIT_STATUS -eq 3 ]]
4 then
5 # reboot after 2 min
6 shutdown --reboot +2
7 fi
8
9 if [[ $EXIT_STATUS -eq 0 ]] || [[ $EXIT_STATUS -eq 1 ]] || [[ $EXIT_STATUS -eq 2 ]]
10 then
11 # poweroff after 2 min
12 shutdown --poweroff +2
13 fi