From: Christian Heller Date: Wed, 10 Feb 2016 00:29:10 +0000 (+0100) Subject: postinstall script: Only call dhclient in thinkpad. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/static/edit?a=commitdiff_plain;h=a6ee79ea22470391a56463aa6f077cd690429574;p=config postinstall script: Only call dhclient in thinkpad. --- diff --git a/jessie_postinstall.sh b/jessie_postinstall.sh index 939d6a4..06d95f2 100755 --- a/jessie_postinstall.sh +++ b/jessie_postinstall.sh @@ -97,7 +97,9 @@ if [ "$1" = "thinkpad" ] || [ "$2" = "public" ]; then 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