Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
if corrected
  • Loading branch information
chriscohnen committed Mar 15, 2016
1 parent 302108e commit e2d9f1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hmcon-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ rfd() {

case $opt in
"HM-MOD-RPI-PCB")
# FIXME configure GPIO18, remove serial console

#prepare additional snippet for rfd init script
SetupGPIO="# export GPIO
if [ ! -d /sys/class/gpio/gpio18 ] ; then
Expand All @@ -128,13 +128,13 @@ SetupGPIO="# export GPIO
"
# disable serial console
read -d . DEBIAN_VERSION < /etc/debian_version
if [DEBIAN_VERSION==8]; then
if (($DEBIAN_VERSION==8)); then
echo 'disabling serial-getty'
systemctl disable [email protected]
else
# give user a reminder
echo '! you will need to disable the boot up and diagnostic output to the serial port: remove ttyAMA0 entries --> #sudo vi /boot/cmdline.txt'
echo '! you will need to comment ttyAMA0 --> #sudo vi /etc/inittab delete or comment #T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100'
echo '! you will need to comment out ttyAMA0 --> #sudo vi /etc/inittab delete or comment #T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100'
fi
# allow hmcon gpio access when using HM-MOD-RPI-PCB
usermod -a -G gpio hmcon
Expand Down

0 comments on commit e2d9f1a

Please sign in to comment.