Unfortunately I don't have a suspend
command (busybox/ash). But I can use kill -STOP $$
to return from a backgrounded shell (sh &
) to the parent shell (and fg
later).
But instead of typing this long kill-command I would like to write a script (named suspend) which should do this:
#!/busybox sh
kill --STOP $$
But this didn't work. It seems that I open another shell and suspend it simultaneously.
So what is the right suspend-script and how do I call it (exec
?)?