add-rc.d rm-rc.d scripts

This commit is contained in:
wt
2024-07-05 18:49:23 +07:00
parent 916cfecee7
commit 7c88b136ef
6 changed files with 39 additions and 8 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
if [ -f /etc/rc.d/$1 ]; then
rm -v /etc/rc.d/$1
echo "removed $1 from init."
else
echo "
** rm-rc.d usage:
rm-rc.d [rc.d link name]
examples:
rm-rc.d 40httpd
rm-rc.d 40ftpd
rm-rc.d 50telnetd
"
fi