-
You may be right, after editing the knoppix-autoconfig to read:
HN="Knoppix-$(ifconfig eth0 | grep HWaddr | awk '{print $5}' | sed s/://g)"
echo $HN > /etc/hostname
sed -i s/^127\.0\.0\.1.*/127\.0\.0\.1\t$HN\ localhost/ /etc/hosts
hostname $HN
I now get eth hostname "knoppix-"
So apparently it's reading the file, but not pulling hte MAC address. Either knoppix doesn't know the MAC address at the time when the knoppix-autoconfig script runs, or you're connrect and the script isn't running properly due to the path. What is the proper path to AWK? /usr/lib/awk? Is that what I need in that script to get it to work?
Thanks for your reply. I need all the help I can get...
Similar Threads
-
By bvsantos in forum Customising & Remastering
Replies: 1
Last Post: 10-22-2007, 05:18 PM
-
Replies: 0
Last Post: 06-01-2006, 08:12 PM
-
By Terry Kemmerer in forum Networking
Replies: 6
Last Post: 02-21-2006, 07:19 AM
-
By kclawson in forum General Support
Replies: 1
Last Post: 12-03-2003, 02:18 AM
-
By StuartP in forum Networking
Replies: 4
Last Post: 06-03-2003, 11:58 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

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack
$826.09

TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot
$573.98

Windows 11 Pro Install/Recovery/Repair USB Flash Drive
$35.00

1/ 10/ 100pcs USB 2.0 2GB, 4GB ,8GB ,16GB ,32GB ,64GB 128GB USB Flash Drives Lot
$202.50

USB 3.0 Micro SD SDHC TF Card Reader Memory Adapter for PC Laptop Camera lot
$3.75

Samsung 32GB DDR4-2666V-2Rx4-RB2-12 RAM M393A4K40CB2-CTD6Q
$169.00

SK hynix 32GB 2x16GB DDR4-2666 ECC RDIMM HMA82GR7AFR8N-VK Server RAM
$129.99

Samsung 32GB 2x16GB DDR4-2400 ECC RDIMM M393A2K40BB1-CRC4Q HPE Server RAM
$169.99

Memory Card Reader Mini 26-IN-1 USB 2.0 High Speed For CF xD SD MS SDHC
$4.95

Wholesale 5/10/100PCS 1GB 2GB 4GB 8GB 16GB 32GB USB 2.0 Flash Drive Memory Stick
$218.79