summaryrefslogtreecommitdiff
path: root/packages/initscripts/initscripts-1.0
diff options
context:
space:
mode:
authorMatthias Hentges <oe@hentges.net>2006-04-08 21:45:19 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-04-08 21:45:19 +0000
commit02fdb87022fe84bdf046f4d2b777e1da0fa4d989 (patch)
tree244a1bafa880207c7b7b1564f372a556329b56e5 /packages/initscripts/initscripts-1.0
parent1e860dcbcb9607375af4b02cce9bfe3e00f406e0 (diff)
initscripts/populate-volatile.sh: Include change from .oz354x
Diffstat (limited to 'packages/initscripts/initscripts-1.0')
-rwxr-xr-xpackages/initscripts/initscripts-1.0/populate-volatile.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/initscripts/initscripts-1.0/populate-volatile.sh b/packages/initscripts/initscripts-1.0/populate-volatile.sh
index 99a469d576..bf498084e4 100755
--- a/packages/initscripts/initscripts-1.0/populate-volatile.sh
+++ b/packages/initscripts/initscripts-1.0/populate-volatile.sh
@@ -85,8 +85,10 @@ apply_cfgfile() {
echo "Cannot create link over existing -${TNAME}-." >&2
} || {
TSOURCE=`echo ${LINE} | cut -d " " -f 6`
- [ "${VERBOSE}" != "no" ] && echo "Creating link -${TNAME}- pointing to -${TSOURCE}-."
- ln -s "${TSOURCE}" "${TNAME}"
+ [ -L "${TNAME}" ] || {
+ [ "${VERBOSE}" != "no" ] && echo "Creating link -${TNAME}- pointing to -${TSOURCE}-."
+ ln -s "${TSOURCE}" "${TNAME}"
+ }
}
continue
}