diff options
author | Roy Marples <roy@marples.name> | 2008-01-06 21:56:13 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-01-06 21:56:13 +0000 |
commit | 816d566440b23b2fb7a0dcab7fa437786936df18 (patch) | |
tree | 8ca0f51102df1a0fcd4c3db9a80a88da2d3c46d6 /etc.BSD/rc.devd | |
parent | 956a867a71d7f5157bcd85491373cdcf7e9e2c22 (diff) |
No need for basename.
Diffstat (limited to 'etc.BSD/rc.devd')
-rw-r--r-- | etc.BSD/rc.devd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc.BSD/rc.devd b/etc.BSD/rc.devd index d394415f..3073ce5e 100644 --- a/etc.BSD/rc.devd +++ b/etc.BSD/rc.devd @@ -36,8 +36,8 @@ getmedia() { } # Try and create an init script for network interfaces -if [ ! -e /etc/init.d/"$1" ]; then - base=$(basename ${1%%.*}) +if [ ! -e /etc/init.d/"$1" -a ! -e /usr/local/init.d/"$1" ]; then + base=${1%%.*} if [ "${base}" = "net" ]; then # We only create links for pyhsical interfaces [ -n "$(getmedia ${1#*.})" ] || exit 1 |