diff --git a/config-debian.sh b/config-debian.sh index 8e37ec3..58f0f25 100755 --- a/config-debian.sh +++ b/config-debian.sh @@ -84,11 +84,11 @@ service sshd restart echo echo "<<< Set hostname or leave blank for no change" -read -p "<<< Set hostname = " NewHostname +read -p "hostname = " NewHostname if [ $NewHostname ] then - sudo hostnamectl set-hostname $NewHostname - echo "127.0.0.1 $NewHostName" >> /etc/hostname + hostnamectl set-hostname $NewHostname + echo "127.0.0.1 $NewHostName" >> /etc/hosts else echo 'Nothing changed >>>' fi diff --git a/install-debian11.sh b/install-debian11.sh new file mode 100644 index 0000000..11c8d3b --- /dev/null +++ b/install-debian11.sh @@ -0,0 +1,6 @@ +read -p "Enter root password or leave blank for default 'MoeClub.org' >> " ROOTPWD + +apt-get update +apt-get install -y xz-utils openssl gawk file net-tools wget +wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' +sudo bash InstallNET.sh -d 11 -v 64 -a -firmware -p "$ROOTPWD" --mirror 'https://mirrors.huaweicloud.com/debian/'