Petter Reinholdtsen <[EMAIL PROTECTED]> writes: > [Marc Brockschmidt] >> What about a simple solution: Ask dpkg if sysvrc is installed. If >> not: Do the update-rc.d remove/start dance as currently >> implemented. If it used, check the current state of /etc/rc?.d/ and >> insert the new links accordingly to that. Would you be willing to >> implement this? It wouldn't worsen the situation, would improve it >> for a large majority of users and doesn't require APIs that are not >> available (yet). > Note that sysv-rc is installed also when dependency based boot > sequencing (insserv) is enabled, and when it is enabled, the sequence > numbers are not fixed. So it is not enough to check if sysv-rc is > installed.
I don't see how this is relevant to detect in which runlevels avahi
should be started. My basic idea:
name="avahi";
start="";
stop="";
for i in `seq 0 9` "S"; do
if [ -e /etc/rc${i}.d/S??${name} ]; then
start="$start $i";
elif [ -e /etc/rc${i}.d/K??${name} ]; then
stop="$stop $i";
fi;
done;
echo "Start: $start";
echo "Stop: $stop"
Marc
--
BOFH #63:
not properly grounded, please bury computer
pgp9QkrgR4he6.pgp
Description: PGP signature

