* Corrected dialog pipe redirection so script works properly in SSH and TTY sessions
* Remove pointless sleep
* Removed unused code
* Use tab indentation instead of space (to save disk space)
* Removed flickering while connecting to an access point and yet another pointless sleep command
* Initial implementation of mac_address.sh
* Added manual MAC address entry.
* Fixed wrong variable in update_mac() function.
* Added clear commands before exiting.
* Spelling and grammar.
* Added some comments.
* Added shebang.
* Corrected terminal output of dialog commands.
* Allow startup dialogs to show on any console.
* Corrected valid MAC addresses being marked as invalid. Improved manual MAC address entry.
* Replaced hardcoded redirects to '/dev/tty2' with redirects to scripts stderr and swap where applicable
* Make MAC address discovery optional.
* Modified sed regex to improve finding and replacing ethaddr variable in update_uboot()
* Code cleanup.
* Check important commands exist before running the script.
* Generate locally administered, unicast addresses in a smarter way.
* Simplify script
* Code cleanup and minor experence changes
* Moved mac_address.sh from other_authors to repository root
Regarding: https://misterfpga.org/viewtopic.php?t=3661
1. The reason hexdump fails is because of not using the hexdump "-v" parameter
-v
Cause hexdump to display all input data. Without the -v option, any number of groups of output lines, which would be identical to the immediately preceding group of output lines (except for the input offsets), are replaced with a line comprised of a single asterisk.
and therefor the c-style $(( )) arithmetic would fail if a group is replaced with a single asterisk
2. & 0xFEFFFFFFFFFF | 0x020000000000 should be replaced by & 0xFCFFFFFFFFFF as you want to zero the last two bits, namely Universal vs local (U/L bit) and the Unicast vs multicast (I/G bit), otherwise you will not generate a valid MAC address.
3. write MAC address in uppercase with the ^^
Current syntax won't work because it can't ping that kind of address, it needs an IP. I also increased the wait time to reduce unnecessary failures upon people taking more than one second to ping to ntp.
* Update cifs_mount.sh
Updated LOCAL_DIR documentation to cover new special "cifs" location
* Update cifs_mount.sh
Set initial value of LOCAL_DIR to "cifs"