[debian-edu-commits] debian-edu/ 01/01: sbin/update-hostname-from-ip: Adjust to fit new output of ifconfig.

Wolfgang Schweer schweer-guest at moszumanska.debian.org
Mon Dec 5 12:36:25 UTC 2016


This is an automated email from the git hooks/post-receive script.

schweer-guest pushed a commit to branch master
in repository debian-edu-config.

commit c7967a612e308325844254f92c2b5ec35118cf24
Author: Wolfgang Schweer <wschweer at arcor.de>
Date:   Mon Dec 5 13:35:59 2016 +0100

    sbin/update-hostname-from-ip: Adjust to fit new output of ifconfig.
---
 debian/changelog             | 6 ++++++
 sbin/update-hostname-from-ip | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 24e391a..a64c8d6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+debian-edu-config (1.920) UNRELEASED; urgency=medium
+
+  * sbin/update-hostname-from-ip: Adjust to fit new output of ifconfig.
+
+ -- Wolfgang Schweer <wschweer at arcor.de>  Mon, 05 Dec 2016 13:26:34 +0100
+
 debian-edu-config (1.919) unstable; urgency=medium
 
   * Make changes needed for renaming the thin-client-server profile to
diff --git a/sbin/update-hostname-from-ip b/sbin/update-hostname-from-ip
index a38f03f..13744c7 100755
--- a/sbin/update-hostname-from-ip
+++ b/sbin/update-hostname-from-ip
@@ -24,7 +24,7 @@ ether2hostname() {
     if [ "$1" ] ; then
 	mac="$1"
     else
-	mac=$(ifconfig $INTERFACE | awk '/Link encap:Ethernet  HWaddr/ { print $5; exit}')
+	mac=$(ifconfig $INTERFACE | awk '/ether/ { print $2; exit}')
     fi
     mac=$(echo $mac | sed 's/[^0-9a-f-]/-/gi')
     if [ "$mac" ] ; then

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-config.git



More information about the debian-edu-commits mailing list