[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#225465: debian-policy: packages must give choice to notstart at boot, via debconf



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: pgppFBZKix0fO.pgp
Description: PGP signature


Reply to: