Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 18 lines (12 sloc) 0.339 kb
#!/bin/sh
#
# save the webc id to disk
#
echo "boot completed"
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
Jump to Line
Something went wrong with that request. Please try again.