mirror of
https://github.com/openwrt/packages.git
synced 2025-09-29 07:23:03 +00:00
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>
11 lines
145 B
Bash
11 lines
145 B
Bash
#!/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
|