Selaa lähdekoodia

Remove Network.sh

chagood 2 vuotta sitten
vanhempi
commit
cfea3a7cfb
1 muutettua tiedostoa jossa 0 lisäystä ja 28 poistoa
  1. 0 28
      Network.sh

+ 0 - 28
Network.sh

@@ -1,28 +0,0 @@
-#!/bin/bash
-
-set -e
-
-# Write Netplan
-sudo touch /etc/netplan/01-netcfg.yaml
-# Changes dhcp from 'yes' to 'no'
-# sed -i "s/dhcp4: yes/dhcp4: no/g" /etc/netplan/01-netcfg.yaml
-# Ask for input on network configuration
-read -p "Enter the static IP of the server in CIDR notation: " staticip 
-read -p "Enter the IP of your gateway: " gatewayip
-read -p "Enter the IP of preferred nameservers (seperated by a coma if more than one): " nameserversip
-echo
-cat > /etc/netplan/01-netcfg.yaml <<EOF
-network:
-  version: 2
-  renderer: networkd
-  ethernets:
-    ens160
-      addresses:
-        - $staticip
-      gateway4: $gatewayip
-      nameservers:
-          addresses: [$nameserversip]
-EOF
-sudo netplan apply
-echo "==========================="
-echo