diff options
-rwxr-xr-x | test/resettest.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/resettest.sh b/test/resettest.sh index b0cb9e1..7278ab0 100755 --- a/test/resettest.sh +++ b/test/resettest.sh @@ -20,7 +20,7 @@ TERM=15 function sleep_reset { # Wait for parent to enter wait. - trap "kill $!;kill $BASHPID" $TERM + trap "exit 0" $TERM while [[ $(ps -h -o wchan -p $PPID) != do_wait ]] ; do usleep 100 ; done echo Register parent for SIGUSR1 echo "$$" "$USR1" >/sys/devices/platform/mts-io/radio-reset-monitor @@ -42,5 +42,7 @@ if ((in_reset == 0)) ; then # pgrep is needed to find the sleep process pgrep -P $! | xargs kill fi +echo "$$" "0" >/sys/devices/platform/mts-io/radio-reset-monitor echo Radio Reset is done. date +sleep 30 |