aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc/profile
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/files/etc/profile')
-rw-r--r--package/base-files/files/etc/profile9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/base-files/files/etc/profile b/package/base-files/files/etc/profile
index 0118e25ff6..bb69ffbd3e 100644
--- 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/$@
+}