These files get the proper permissions and the necessary symlinks are created by running the following commands. If you didn't create the loadkeys and/or setclock scripts, make sure not to type them in the commands below.
A note of caution: all the symlinks (that start with an S or K) have to be of the form Sxxxname where xxx are three digits denoting the order in which the script is executed (the lower the number the sooner it's executed). If you feel a need to use less than three digits, make sure you pad with extra zero's at the beginning. This means, don't use S20mydaemon, but S020mydaemon. And don't use K2otherdaemon, but K002otherdaemon.
cd /etc/init.d && chmod 754 rc rcS functions checkfs halt loadkeys mountfs reboot && chmod 754 sendsignals setclock sysklogd template && chmod 754 localnet ethnet && cd ../rc0.d && ln -sf ../init.d/ethnet K800ethnet && ln -sf ../init.d/sysklogd K900sysklogd && ln -sf ../init.d/sendsignals S800sendsignals && ln -sf ../init.d/mountfs S900mountfs && ln -sf ../init.d/halt S999halt && cd ../rc6.d && ln -sf ../init.d/ethnet K800ethnet && ln -sf ../init.d/sysklogd K900sysklogd && ln -sf ../init.d/sendsignals S800sendsignals && ln -sf ../init.d/mountfs S900mountfs && ln -sf ../init.d/reboot S999reboot && cd ../rcS.d && ln -sf ../init.d/localnet S100localnet && ln -sf ../init.d/checkfs S200checkfs && ln -sf ../init.d/mountfs S300mountfs && ln -sf ../init.d/setclock S400setclock && ln -sf ../init.d/loadkeys S500loadkeys && cd ../rc1.d && ln -sf ../init.d/ethnet K800ethnet && ln -sf ../init.d/sysklogd K900sysklogd && cd ../rc2.d && ln -sf ../init.d/sysklogd S100sysklogd && ln -sf ../init.d/ethnet K800ethnet && cd ../rc3.d && ln -sf ../init.d/sysklogd S100sysklogd && ln -sf ../init.d/ethnet S200ethnet && cd ../rc4.d && ln -sf ../init.d/sysklogd S100sysklogd && ln -sf ../init.d/ethnet S200ethnet && cd ../rc5.d && ln -sf ../init.d/sysklogd S100sysklogd && ln -sf ../init.d/ethnet S200ethnet |