-
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

GIGABYTE A520M DS3H AC AMD AM4 Motherboard mATX
$59.99

Intel H310 LGA1151 8-9th Gen DDR4 M.2 NVMe mATX Motherboard IO Shield Battery
$54.99

GIGABYTE Z790 AORUS ELITE AX LGA 1700 Intel Z790 ATX Motherboard with DDR5
$189.99

ASUS PRIME Z490-V Motherboard Intel Z490 10th gen DDR4 LGA 1200 ATX w/ IO Shield
$84.99

GIGABYTE B365 HD3 LGA1151 Intel 9th Gen motherboard
$59.99

Intel H81 Motherboard M.2 NVMe LGA 1150 mATX w/ IO Shield (Random Slot Color)
$29.90

ASUS PRIME B360M-C MicroATX Intel LGA1151 DDR4 HDMI VGA USB RJ-45 Audio
$34.99

ASUS PRIME Z370-A II LGA 1151 Intel Z370 DDR4 DIMM USB3.1 DVI ATX RGB
$69.99

ASUS B85M-G / B85M-G PLUS LGA1150 DDR3 Micro ATX Motherboard HDMI Support 4thCPU
$45.00

Dell XPS 8940 Desktop Motherboard Intel H470 LGA1200 DDR4 K3CM7 KV3RP 427JK
$154.99