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>
10 lines
145 B
Bash
10 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
|