If an init.d service is started and then interrupted by pressing ctrl-c at a certain point, the whole init.d collection is left unusable because /var/lib/init.d/deptree is missing. The error message was: # /etc/init.d/net.eth0 start /lib/rcscripts/sh/rc-services.sh: line 22: /var/lib/init.d/deptree: No such file or directory * Dependency info is missing! Please run * # /sbin/depscan.sh * to fix this. Running /sbin/depscan.sh had no effect, machine could not reboot or start any services. This was fixed by having to re-emerge baselayout and rebooting. I am guessing that at some point the rc scripts update the deptree file, and it is first removed then recreated. Could this be fixed by creating a temporary file then just copying it over once created fully? To not leave the machine in a half-broken state?
you should have just run `depscan.sh -u` depscan.sh will now ignore CTRL+C/CTRL+Z while booting