diff options
author | egon_ffj <egon@freifunk-jena.de> | 2011-03-06 20:05:57 (GMT) |
---|---|---|
committer | egon_ffj <egon@freifunk-jena.de> | 2011-03-06 20:05:57 (GMT) |
commit | 9e19c7fafb4363594fa24b48b00e4ac0c229ac26 (patch) | |
tree | 13be13e005d44cd7d067db4fa773e425368acddd /files | |
parent | 2c023b276e5b49eb1fec69d2ca1fb578d2eae4fa (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 } |