Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes so the scripts work on a 4.1 kernel #8

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/detect-hw-os
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if [[ ${NINJA_CLIENT_NAME} = "pi" ]]; then
else # beaglebone
echo "export NINJA_CAPE_V121_RESETGPIO=44" >> /etc/environment.local
echo "export NINJA_CAPE_DETECT_GPIO=60" >> /etc/environment.local
dmesg | grep -q "Bone-Black-HDMI"
dmesg | grep -q -i "beaglebone-black"
if [ "$?" == 0 ]; then
echo "export NINJA_HARDWARE_TYPE=BBB" >> /etc/environment.local
else
Expand Down
6 changes: 5 additions & 1 deletion bin/serialnumber
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ if [[ -n $NINJA_HARDWARE_TYPE ]]; then
serial=`sudo xxd -g 2 -a -l 16 -seek 16 /sys/bus/i2c//devices/1-0050/eeprom | sed 's/^.* //' | sed -e 's/[.]//g'`
echo $serial > /etc/opt/ninja/serial.conf
elif [ "$NINJA_HARDWARE_TYPE" == "BBB" ]; then
cat /sys/devices/bone_capemgr.9/baseboard/serial-number > /etc/opt/ninja/serial.conf
capemgr=/sys/devices/bone_capemgr.9
if [ ! -d $capemgr ] ; then
capemgr=/sys/devices/platform/bone_capemgr
fi
cat $capemgr/baseboard/serial-number > /etc/opt/ninja/serial.conf
fi
fi
if [ -f /etc/opt/ninja/serial.override.conf ]; then
Expand Down