void-packages/srcpkgs/x13s-base/INSTALL
2024-07-07 01:32:26 -04:00

9 lines
316 B
Text

case "$ACTION" in
post)
# assign a random wlan and bluetooth MAC addresses with the correct OUI
# as the firmware doesn't support saving this
sed -i -e "s/:UU:VV:WW/$(od -An -N3 -t x1 /dev/urandom | tr ' ' ':')/g" \
-e "s/:XX:YY:ZZ/$(od -An -N3 -t x1 /dev/urandom | tr ' ' ':')/g" \
etc/default/x13s
;;
esac