Files
Flash-CHIP/CHIP-updater/install_extras.sh
bicubico fefcc65857 extras
2023-02-21 12:40:50 -03:00

30 lines
594 B
Bash

#!/bin/bash
# Installing extras
echo "."
echo "*** installing extras. ***"
apt install neofetch -y
echo "neofetch" >> /home/chip/.bashrc
wget https://raw.githubusercontent.com/asophila/headless/main/startup.sh
chmod +x startup.sh
sed -e -i '$i \sh /home/chip/startup.sh\n' /etc/rc.local
echo -n "Insert a name for the ntfy.sh group where the network IP will be posted:"
read group
if [$group==""]; then
$group=="secret_ip"
fi
sed -i 's/SECRET_GROUP/$group/g' startup.sh
echo -n "Insert a name for this host:"
read hname
hostnamectl set-hostname $hname
echo "."
echo "*** Done ***"