please review the attached patch I kept getting annoyed by rc-update because I instinctivley type "rc-update delete foo" instead of "rc-update del foo" so i extended it to accept delete and -d as aliases for del (i also added -a as an alias for add) while extending I also found what looks like a bug in line 81 of the current version. It causes rc-update to print things like: "failed to add default to default." when it failes to make a symlink from the script in /etc/init.d to the runlevel directory Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 14396 [details, diff] rc-update patch
Looks ok. I do not however see where your patch address the bug ? Anyhow, applied to cvs, thanks.
IIRC it's in this part here: - eerror "$0: failed to add $1 to ${x}." + eerror "$0: failed to add ${myscript} to ${x}." when that line gets called $1 has been shifted into ${myscript} so $1 is actually = ${x}