This one time, at band camp, Miquel van Smoorenburg said: > > AUTORUN=True > [ ! -f /etc/default/sshd ] || . /etc/default/sshd > > case "${0##*/}" in > S*) > case "$AUTORUN" in > [YyTt]*) > ;; > *) > exit 0 > ;; > esac > ;; > esac > > That's all. The only thing is that file-rc must be changed to start > the init.d scripts with SnnNAME or KnnNAME instead of just NAME. > Sysvinit already does this because it executes the symlink to > the script, so you can test $0. Or case "$1" in start) case "$AUTORUN" in [...] ;; .... No need to change other things for that. -- ----------------------------------------------------------------- | ,''`. Stephen Gran | | : :' : sgran@debian.org | | `. `' Debian user, admin, and developer | | `- http://www.debian.org | -----------------------------------------------------------------
Attachment:
pgpOx5dE8XVaf.pgp
Description: PGP signature