13 lines
134 B
Bash
Executable File
13 lines
134 B
Bash
Executable File
#!/bin/sh
|
|
|
|
[ "${ACTION}" = "released" ] || exit 0
|
|
|
|
if [ "$SEEN" -ge 5 ]
|
|
then
|
|
echo "REBOOT" > /dev/console
|
|
sync
|
|
reboot
|
|
fi
|
|
|
|
return 0
|