Quellcode durchsuchen

added grmlnetwork()

Toastie vor 2 Jahren
Ursprung
Commit
71355342c7
1 geänderte Dateien mit 8 neuen und 1 gelöschten Zeilen
  1. 8 1
      bootrap_bullseye.sh

+ 8 - 1
bootrap_bullseye.sh

@@ -1,6 +1,14 @@
 #!/bin/bash -e
 #----------
 # Interactive installation steps for Debian Bullseye from GRML using debootstrap
+# Setup network in grml
+grmlnetwork(){
+ip link show # list interfaces
+ip addr add 203.0.113.66/24 dev eth0
+ip link set eth0 up
+ip route add default via 203.0.113.1
+echo 1.1.1.1 > /etc/resolv.conf
+}
 
 # Design decisions
 # - Add a small file-based swap partition as safety net
@@ -85,7 +93,6 @@ EOL
 # Configure hostname
 echo "127.0.0.1       $hostname" >> /etc/hosts
 echo $hostname > /etc/hostname
-
 }
 
 install(){