summaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authoregon0 <ms@resonar.de>2011-03-06 20:05:57 (GMT)
committeregon0 <ms@resonar.de>2011-03-06 20:05:57 (GMT)
commit3c038580c8837380f38a592c5f1e5b6feb804f0e (patch)
tree13be13e005d44cd7d067db4fa773e425368acddd /files
parentdde95d5f207ce36b5cdf372b52067924a0d3313f (diff)
* set md5sum of macadress as hostname instead of macadress in plaintext
Diffstat (limited to 'files')
-rwxr-xr-xfiles/etc/rc.d/S40network2
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
}
contact: Jan Huwald // Impressum