diff options
author | egon0 <ms@resonar.de> | 2011-03-06 20:05:57 (GMT) |
---|---|---|
committer | egon0 <ms@resonar.de> | 2011-03-06 20:05:57 (GMT) |
commit | 3c038580c8837380f38a592c5f1e5b6feb804f0e (patch) | |
tree | 13be13e005d44cd7d067db4fa773e425368acddd /files | |
parent | dde95d5f207ce36b5cdf372b52067924a0d3313f (diff) |
* set md5sum of macadress as hostname instead of macadress in plaintext
Diffstat (limited to 'files')
-rwxr-xr-x | files/etc/rc.d/S40network | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/etc/rc.d/S40network b/files/etc/rc.d/S40network index 6d51071..00ea19a 100755 --- a/files/etc/rc.d/S40network +++ b/files/etc/rc.d/S40network @@ -29,7 +29,7 @@ boot() { type "coldplug_interface_$proto" >/dev/null && [ "$auto" = 1 ] && \ coldplug_interface_$proto "$ifc" done - ifconfig ath0 | grep 'HWaddr'| awk '{gsub(":","", $5); print $5}' > /proc/sys/kernel/hostname + ifconfig ath0 | grep 'HWaddr'| md5sum > /proc/sys/kernel/hostname } |