BBB File /etc/rc.local

From Wiki
Jump to navigationJump to search

This rc.local file tunes the print station for us.

  • Disable IPv6
  • Set WiFi mode to access point
  • Enable /dev/ttyO2
  • Display network configuration to printer
  • Turn off LEDs

See the following links for the script files called below

#!/bin/bash -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

export PATH="${PATH:+$PATH:}/usr/local/sbin"

noipv6
wifiModeAP
enableTTYO2 19200
ifdisplay
ledsoff

exit 0