mirror of
https://github.com/Retropex/apolloapi-v2.git
synced 2025-05-15 12:40:47 +02:00
24 lines
518 B
Bash
24 lines
518 B
Bash
#!/bin/sh -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.
|
|
|
|
/opt/apolloapi/backend/firewall
|
|
#configure gpios
|
|
gpio mode 1 out
|
|
gpio write 1 0
|
|
gpio mode 0 out
|
|
gpio write 0 1
|
|
#configure cpu
|
|
cpufreq-set -c0 -u 1.2GHz -g CONSERVATIVE
|
|
#mount nvme drive
|
|
/opt/apolloapi/backend/first_run
|