This one time, at band camp, John Hasler said: > Miquel van Smoorenburg writes: > > It also doesn't work with file-rc, so it is fundamentally broken. > > test -z "$RUN_package_AT_BOOT" && echo $(basename $0) | grep -q '^S'\ > || test "$CALL_FROM_RC" = "yes" && exit 0 How about the simpler: if [ -z "$RUN_package_AT_BOOT" -a "$PPID" = "1" ] ; then exit 0 ; fi Or does that miss something else? Thinking about this issue for one of my packages, so please reply if you see obvious problems. -- ----------------------------------------------------------------- | ,''`. Stephen Gran | | : :' : sgran@debian.org | | `. `' Debian user, admin, and developer | | `- http://www.debian.org | -----------------------------------------------------------------
Attachment:
pgpmf5yVAa9vW.pgp
Description: PGP signature