[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Bug 1282] New: Error updating hostname from IP



http://bugs.skolelinux.no/show_bug.cgi?id=1282

           Summary: Error updating hostname from IP
           Product: Skolelinux
           Version: etch-release-3.0r0
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Configuration
        AssignedTo: debian-edu@lists.debian.org
        ReportedBy: lars_westphal@gmx.de


The script that updates the hostname from the assigned IP address is broken. The
line

INTERFACE="(/sbin/route -n | awk '/^0\.0\.0\.0 / { print $8 }')"

does not work because of the missing backticks (sorry, forgot the line number).
It works after adding them:

INTERFACE=`/sbin/route -n | awk '/^0\.0\.0\.0 / { print $8 }'`

which results in the correct interface for the default route. This occured on
the Workstation profile of the etch-release-3.0r0.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



Reply to: