summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorncopa <ncopa@f176ef85-8d20-0410-844a-e957b5a1c371>2008-01-22 09:06:26 +0000
committerncopa <ncopa@f176ef85-8d20-0410-844a-e957b5a1c371>2008-01-22 09:06:26 +0000
commit9eb240b7f946b4453eb60c15f74c611c36a3c36c (patch)
tree72718cc9b64ef05c9ee01b2c8183e88a46c45422
parent06f65ed55fbce2af1c394c942c7d214a7816126f (diff)
downloadalpine-baselayout-9eb240b7f946b4453eb60c15f74c611c36a3c36c.tar.bz2
alpine-baselayout-9eb240b7f946b4453eb60c15f74c611c36a3c36c.tar.xz
dont let mdev move around links
-rw-r--r--subdir_dev3
1 files changed, 3 insertions, 0 deletions
diff --git a/subdir_dev b/subdir_dev
index 7115e9e..cbd931a 100644
--- a/subdir_dev
+++ b/subdir_dev
@@ -23,6 +23,9 @@ fi
case "$ACTION" in
add|"")
+ if [ -L "$MDEV" ]; then
+ exit 0
+ fi
mkdir -p $1
mv $MDEV $1/$new_name
if [ "$link" = 1 ] ; then