Commit 1ae3b03d authored by Joanne Hugé's avatar Joanne Hugé

Add scripts folder

parent c8f56f8c
#!/bin/bash
if [ -z "$1" ]; then
echo "Usage: rename-hostname XX"
fi
apt update
apt install eatmydata
eatmydata apt dist-upgrade
cd /root/amarisoft-private
git fetch origin && git reset --hard origin/master
cd /root/config-amarisoft
git fetch origin && git reset --hard origin/master
cd /root/slapos.package
git fetch origin && git reset --hard origin/master
cd /root/ors-utils
git fetch origin && git reset --hard origin/master
#!/bin/bash
lspci | grep Xilin
#!/bin/bash
cd /root/openocd;
./openocd/src/openocd -s ./openocd/tcl -f pcie_radio.cfg
#!/bin/bash
cd /root/trx_sdr;
systemctl stop lte;
./sdr_util upgrade;
systemctl start lte;
lspci | grep Xilin
#!/bin/bash
if [ -z "$1" ]; then
echo "Usage: rename-hostname XX"
exit;
fi
hostnamectl set-hostname ors$1;
sed -i "s/orsXX/ors$1/" /etc/hosts /etc/hostname;
rm -rf /etc/ssh/ssh_host_*;
dpkg-reconfigure openssh-server
#!/bin/bash
systemctl restart lte;
grep -a -m1 -h -R "Host ID" /var/log/lte | tail -1 | awk '{print $3;}'
#!/bin/bash
mkdir -p /opt/amarisoft/.amarisoft && cp -r ~/.amarisoft/* /opt/amarisoft/.amarisoft/;
bash /root/re6st;
bash /root/slapos
#!/bin/bash
cd slapos.package/playbook;
ansible-playbook -i hosts ors.yml;
ansible-playbook -i hosts ors-upgrade.yml
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment