aboutsummaryrefslogtreecommitdiff
path: root/init.d.BSD
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-06 21:56:13 +0000
committerRoy Marples <roy@marples.name>2008-01-06 21:56:13 +0000
commit816d566440b23b2fb7a0dcab7fa437786936df18 (patch)
tree8ca0f51102df1a0fcd4c3db9a80a88da2d3c46d6 /init.d.BSD
parent956a867a71d7f5157bcd85491373cdcf7e9e2c22 (diff)
No need for basename.
Diffstat (limited to 'init.d.BSD')
-rw-r--r--init.d.BSD/rc-enabled4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.d.BSD/rc-enabled b/init.d.BSD/rc-enabled
index 6e9da965..6a6de25a 100644
--- a/init.d.BSD/rc-enabled
+++ b/init.d.BSD/rc-enabled
@@ -34,7 +34,7 @@ start() {
local svc= enabled= retval=0 service=
for svc in $(rcorder /etc/rc.d/* /usr/local/etc/rc.d/* 2>/dev/null); do
[ -x "$svc" ] || continue
- service=$(basename ${svc})
+ service=${svc##*/}
# Skip these services
for s in cleartmp moused; do
@@ -46,7 +46,7 @@ start() {
[ -x /usr/local/etc/init.d/"${service}" ] && continue
# Ensure that the users rc.conf will start us - ignore the defaults
- eval enabled=\$$(basename "${svc}")_enable
+ eval enabled=\$${svc##*/}_enable
yesno ${enabled} || continue
# Good to go!