projects
/
openwrt
/
staging
/
wigyori.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
base-files: add a wrapper for init scripts in profile
[openwrt/staging/wigyori.git]
/
package
/
base-files
/
files
/
etc
/
profile
diff --git
a/package/base-files/files/etc/profile
b/package/base-files/files/etc/profile
index 0118e25ff620c857ec27f84010b817e7e919390a..bb69ffbd3ebc81ae72a5bbe55537df9ec5122b33 100644
(file)
--- a/
package/base-files/files/etc/profile
+++ b/
package/base-files/files/etc/profile
@@
-41,3
+41,12
@@
in order to prevent unauthorized SSH logins.
--------------------------------------------------
EOF
fi
+
+service() {
+ [ -f "/etc/init.d/$1" ] || {
+ echo -n "$1 does not exist. the following services are available :"
+ ls "/etc/init.d"
+ return 1
+ }
+ /etc/init.d/$@
+}