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
- BBB File /usr/local/sbin/noipv6
- BBB File /usr/local/sbin/wifiModeAP
- BBB File /usr/local/sbin/enableTTYO2
- BBB File /usr/local/sbin/ifdisplay
- BBB File /usr/local/sbin/ledsoff
#!/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