summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Banck <mbanck@debian.org>2006-04-13 09:18:49 +0000
committerMichael Banck <mbanck@debian.org>2006-04-13 09:18:49 +0000
commit76cbff6530dd16a4794c0beb27981f17d9ac7b08 (patch)
treef0d15267c652b1f091c5ab3051e9e0282e63d391
parent0867adb93d007ee5d64681fc92eb0e4f248738fc (diff)
Check for [ ! -h rather than [ ! -e, which does not recognize broken symlinks
-rw-r--r--debian/hurd.postinst4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/hurd.postinst b/debian/hurd.postinst
index 2e7ff488..86d7c9d1 100644
--- a/debian/hurd.postinst
+++ b/debian/hurd.postinst
@@ -17,10 +17,10 @@ for i in vcs tty1 tty2 tty3 tty4 tty5 tty6; do
fi
done
-if [ ! -e /dev/mouse ]; then
+if [ ! -h /dev/mouse ]; then
ln -s /dev/cons/mouse /dev/mouse
fi
-if [ ! -e /dev/kbd ]; then
+if [ ! -h /dev/kbd ]; then
ln -s /dev/cons/kbd /dev/kbd
fi