u2pnpd: add new package

u²pnpd announces a device as UPnP basic device on the
network so that an user could easily find it. It tries
to detect various system information automatically, however
everything can be overridden by UCI settings.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
This commit is contained in:
Michael Heimpold
2015-10-01 23:45:47 +02:00
parent a8c37348b2
commit 31e6a7832a
4 changed files with 146 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/sh
uuid=$(cat /proc/sys/kernel/random/uuid)
uci -q batch <<-EOF >/dev/null
set u2pnpd.@u2pnpd[0].uuid=$uuid
commit u2pnpd
EOF
exit 0