2013-01-31 10:23:27 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2013-10-03 18:46:54 +02:00
|
|
|
. /lib/functions.sh
|
|
|
|
. /lib/gluon/functions/sysconfig.sh
|
2013-01-31 10:23:27 +01:00
|
|
|
|
2013-10-03 18:46:54 +02:00
|
|
|
macaddr=$(sysconfig primary_mac)
|
2013-01-31 10:23:27 +01:00
|
|
|
|
2013-10-03 18:46:54 +02:00
|
|
|
uci_set system '@system[0]' hostname "@hostname_prefix@-${macaddr//:/}"
|
|
|
|
uci_set system '@system[0]' timezone '@timezone@'
|
|
|
|
uci_commit system
|