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

Re: rebuilding /etc/rc<n>.d Scripts



Once upon a time Erich Waelde said...
> 
> In principle, apt-get --reinstall install <package> will fix it, but how to
> find out all packages having startup links? 

You could try something like:

# cd /var/lib/dpkg/info
# grep -l update-rc.d *.postinst | sed 's/.postinst$//'

That should give you a list of all the packages that run update-rc.d in
their post install script. It may catch one or two bogus packages (with
update-rc.d commented out), but it should catch all the ones you want.




Reply to: