forked from hobbyquaker/hmcon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|