busybox: pswitch-release: Fix incorrect return value.

For Busybox's ash, -1 is an Invalid Number.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
This commit is contained in:
Alex Gonzalez 2015-11-19 16:08:34 +01:00
parent f9884afc12
commit 71e1c61f8a
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ POWEROFF_DELAY=2
if [ ! -f /tmp/pswitch_press ]; then
logger -t acpid "No press event."
exit -1
exit 1
fi
while read line