[debian-edu-commits] debian-edu/ 01/01: Adjust sbin/update-hostname-from-ip to work with changed ifconfig output. (Closes: #859405)
Wolfgang Schweer
schweer-guest at moszumanska.debian.org
Mon Apr 3 10:13:42 UTC 2017
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 f85aa409ba8780f4a59529d8fee97e2ef613f3de
Author: Wolfgang Schweer <wschweer at arcor.de>
Date: Mon Apr 3 12:13:12 2017 +0200
Adjust sbin/update-hostname-from-ip to work with changed ifconfig output. (Closes: #859405)
---
debian/changelog | 7 +++++++
sbin/update-hostname-from-ip | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index d44de76..202c803 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+debian-edu-config (1.925) UNRELEASED; urgency=medium
+
+ * Adjust sbin/update-hostname-from-ip to work with changed ifconfig output.
+ (Closes: #859405)
+
+ -- Wolfgang Schweer <wschweer at arcor.de> Mon, 03 Apr 2017 11:39:25 +0200
+
debian-edu-config (1.924) unstable; urgency=medium
[ Wolfgang Schweer ]
diff --git a/sbin/update-hostname-from-ip b/sbin/update-hostname-from-ip
index 13744c7..1888743 100755
--- a/sbin/update-hostname-from-ip
+++ b/sbin/update-hostname-from-ip
@@ -97,7 +97,7 @@ done
# Extract current IP if non was provided on the command line
if [ -z "$IP" ] ; then
- IP=`ifconfig $INTERFACE 2>&1 |grep 'inet addr:'|tr a-zA-Z: " "|awk '{print $1; exit}'`
+ IP=`ifconfig $INTERFACE 2>&1 |grep 'inet'|tr a-zA-Z: " "|awk '{print $1; exit}'`
fi
if [ "127.0.0.1" = "$IP" ] ; 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