extras
This commit is contained in:
29
CHIP-updater/install_extras.sh
Normal file
29
CHIP-updater/install_extras.sh
Normal file
@@ -0,0 +1,29 @@
|
||||
#!/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 ***"
|
||||
Reference in New Issue
Block a user