diff options
Diffstat (limited to 'packages/initscripts/initscripts-1.0/populate-volatile.sh')
-rwxr-xr-x | packages/initscripts/initscripts-1.0/populate-volatile.sh | 6 |
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 } |