home · contact · privacy
postinstall script: Only call dhclient in thinkpad.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 10 Feb 2016 00:29:10 +0000 (01:29 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 10 Feb 2016 00:29:10 +0000 (01:29 +0100)
jessie_postinstall.sh

index 939d6a4cef54a30ec78b76776180e27596faad2f..06d95f2275dd967673676a91e9ad5dbc6f1fe8c5 100755 (executable)
@@ -97,7 +97,9 @@ if [ "$1" = "thinkpad" ] || [ "$2" = "public" ]; then
     echo 'APT::Default-Release "stable";' \
         >> /etc/apt/apt.conf.d/99defaultrelease
 fi
     echo 'APT::Default-Release "stable";' \
         >> /etc/apt/apt.conf.d/99defaultrelease
 fi
-dhclient eth0
+if [ "$1" = "thinkpad" ]; then
+    dhclient eth0
+fi
 apt-get update
 apt-get -y dist-upgrade
 
 apt-get update
 apt-get -y dist-upgrade