Browse Source

added grmlnetwork()

Toastie 1 year ago
parent
commit
71355342c7
1 changed files with 8 additions and 1 deletions
  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(){