-
Hi again
In the end I determined that pump could not do this, so I added the line
Code:
hostname $(dig -x `ifconfig $DEVICE | grep "inet addr" |awk '{print $2}' | cut -d : -f2` +short |cut -d . -f1)
to /etc/init.d/knoppix-auoconfig, after netdevice detection has finished. I set $DEVICE to eth0, but in the more general case I think leaving out $DEVICE should work. If a network was unavailble I think that the command would fail, and the hostname would remain Knoppix (as set earlier in the script)
Ben
Similar Threads
-
By paradigm_shift in forum Networking
Replies: 0
Last Post: 07-15-2005, 05:36 AM
-
By probono in forum Networking
Replies: 0
Last Post: 09-17-2004, 04:52 AM
-
By qman_txun in forum Networking
Replies: 4
Last Post: 11-04-2003, 08:22 AM
-
By JockVSJock in forum Networking
Replies: 7
Last Post: 10-08-2003, 09:23 AM
-
By probono in forum Networking
Replies: 0
Last Post: 06-08-2003, 11:42 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Windows XP, Vista, 8.1, Linux Knoppix, Office XP, (6 CDS)
$10.00

KNOPPIX 9.1 Linux Install & Live DVD 32bit & 64bit
$19.99

Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive
$5.99

KNOPPIX USB DVD OS , BEST OF ALL HIGHLY RECOMENDED
$11.99

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 16G USB Stick
$20.85

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 32G USB Stick
$21.42

VINTAGE SOFTWARE | KNOPPIX STD 0.1 (SECURITY TOOLS DISTRIBUTION)
$7.57

Knoppix NSM 1.2
$8.00

Hamshack Live DVD-ROM
$7.00

Knoppix 5.0.1 ULTRA RARE Linux DVD - Linux Pro Extra August 2006
$33.58