Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 18 lines (13 sloc) 0.362 kB
#!/bin/sh
#
# save the webc id to disk
#
mac=`ip address show dev eth0 | awk '/ether/ { print $2 }'`
test "$mac" = "" && mac="unknown_mac"
uuid=`cat /sys/devices/virtual/dmi/id/product_uuid`
test "$uuid" = "" && uuid="unknown_uuid"
webc_id="${uuid};${mac}"
echo "$webc_id" > /etc/webc/id
chmod 644 /etc/webc/id
pkill dhclient
/etc/init.d/networking restart
Jump to Line
Something went wrong with that request. Please try again.