domoticz: use 'ln -sf' in serial hotplug script
authorDavid Woodhouse <dwmw2@infradead.org>
Sun, 13 May 2018 14:50:34 +0000 (15:50 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Mon, 25 Jun 2018 14:26:25 +0000 (15:26 +0100)
Otherwise, stale symlinks don't get replaced

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
utils/domoticz/files/domoticz.hotplug

index 7138175ef08f31bd97e427a745877dc4c59da0c8..3cd8651c13c2b3e0e60c68a64527a6f3e315af67 100644 (file)
@@ -28,7 +28,7 @@ add() {
        chgrp domoticz "/dev/$DEVICENAME"
        chmod g+rw "/dev/$DEVICENAME"
 
-       [ -n "$symlink" ] && ln -s "/dev/$DEVICENAME" "/dev/$symlink"
+       [ -n "$symlink" ] && ln -sf "/dev/$DEVICENAME" "/dev/$symlink"
 }
 
 remove() {