void-packages/srcpkgs/x13s-base/INSTALL

10 lines
316 B
Plaintext

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