☰
Debian Codegraph
@
0.4.8-5
0.4.8-3
/
/
launcher
/
image
/
exit_script.sh
☽
☼
launcher/image/exit_script.sh
code
plain
raw
Apache-2.0
2018 Google Inc.; 2020-2022 Google LLC
debian/copyright
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