2009/10/21 Gabriele Giacone <losga...@libero.it> > I started to modify the above ones then I continued with all the other > ones. > My goal was to get the "official" sequence number. > Steps? For each init.d script, remove current rcN links and reinstall the > package it belongs. > Use the following script. It let you choose among /etc/init.d scripts and > the reinstallation of the package they belong. > Package reinstall implies reconfigure? My system is a desktop, I didn't do > complex reconfiguration. > Compare before and after sequence numbers and you should see a lot of > differences. > > --- > for i in /etc/init.d/* > do > _file=$(basename $i) > echo -e "File >>> $_file <<< OK? \c" > read _answ > [ "$_answ" != "y" ] && continue > ### "find" to see current sequence numbers > find /etc/rc*|grep $_file > ### removing current links > update-rc.d -f $_file remove > ### from file to package > dpkg -S $i > _pkg=$(dpkg -S $i|cut -d: -f1) > ### reinstall it? > echo -e "Reinstall package >>> $_pkg <<< OK? \c" > read _answ > [ "$_answ" != "y" ] && continue > apt-get -y --reinstall install $_pkg > ### "find" to see new sequence numbers > find /etc/rc*|grep $_file > done > --- > > Hello!
Thank you very much for your description & the script. Actions to take look much clearer now for me. I'll try to 'implement' them in next few days. I'll let you know how it goes. B. Regards, Tomasz Grzelak