LiteCel: Add rc.local

This commit is contained in:
Keith Whyte 2021-05-27 02:07:32 +02:00
parent ee187785ba
commit 598bf572b8
2 changed files with 8 additions and 0 deletions

View file

@ -60,6 +60,7 @@ for bts in "${!BTS[@]}" ; do
# Master Verified.
echo "BTS is a 2050 Master"
ssh $SSH_OPTS root@${BTS[$bts]} "echo '$SITE-Master-$bts' > /etc/hostname"
scp $SSH_OPTS rc.local root@${BTS[$bts]}:/etc/rc.local
scp $SSH_OPTS master/gpsd root@${BTS[$bts]}:/etc/default/gpsd
scp $SSH_OPTS master/ntp.conf root@${BTS[$bts]}:/etc/ntp.conf
scp $SSH_OPTS leds.sh root@${BTS[$bts]}:/etc/init.d/leds.sh
@ -72,6 +73,7 @@ for bts in "${!BTS[@]}" ; do
# Slave Verified.
echo "BTS is a 2050 Slave"
ssh $SSH_OPTS root@${BTS[$bts]} "echo '$SITE-Slave-$bts' > /etc/hostname"
scp $SSH_OPTS rc.local root@${BTS[$bts]}:/etc/rc.local
scp $SSH_OPTS slave/gpsdate root@${BTS[$bts]}:/etc/default/gpsdate
fi

View file

@ -0,0 +1,6 @@
#!/bin/sh
# Turn on 2050 PA so that osmo-bts can do power ramping.
if [ `/usr/bin/sysmobts-util model-nr` == '2050' ] ; then
/usr/bin/sbts2050-util sbts2050-pwr-enable 1 1 1
fi