Skip to content

Commit

Permalink
Allow overriding serial via configuration file for cases where EEPROM…
Browse files Browse the repository at this point in the history
… not written correctly.
  • Loading branch information
theojulienne committed Nov 21, 2013
1 parent c2b2999 commit ba5fdcf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/serialnumber
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ if [[ -n $NINJA_HARDWARE_TYPE ]]; then
cat /sys/devices/bone_capemgr.9/baseboard/serial-number > /etc/opt/ninja/serial.conf
fi
fi
if [ -f /etc/opt/ninja/serial.override.conf ]; then
cat /etc/opt/ninja/serial.override.conf > /etc/opt/ninja/serial.conf
fi

0 comments on commit ba5fdcf

Please sign in to comment.