odhcp6c: read user scripts from directory
[openwrt/staging/chunkeey.git] / package / network / ipv6 / odhcp6c / files / dhcpv6.script
index 28955a358fcd9a6d4e8321e8bb04c80f37df642b..b1a99ed98681f5b232f091438236e7bff812c0c8 100755 (executable)
@@ -237,5 +237,8 @@ esac
 
 # user rules
 [ -f /etc/odhcp6c.user ] && . /etc/odhcp6c.user "$@"
+for f in /etc/odhcp6c.user.d/*; do
+  [ -f "$f" ] && (. "$f" "$@")
+done
 
 exit 0