diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-12-03 21:56:05 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-12-03 21:56:05 (EST) |
commit | 3c980523b904caa0ff1ad1406986e28fe4f655fb (patch) | |
tree | 2f5176feb27c4ad142e2ce5ce37d19afba323a7e | |
parent | 54379ea45c663dcc341343751206ccb583fefc41 (diff) |
prof_proteanos_configure_system_native(): Check plat
Don't enable services on dev. Set hostname to "proteanos" on non-dev
platforms.
-rw-r--r-- | lib/profile/proteanos.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/profile/proteanos.sh b/lib/profile/proteanos.sh index 92cdf11..ef55d8c 100644 --- a/lib/profile/proteanos.sh +++ b/lib/profile/proteanos.sh @@ -220,9 +220,13 @@ prof_proteanos_configure_system_native() printf 'disabled\n' >"${root}/etc/rc.policy" opkg_install_all "${root}" - printf 'enabled\n' >"${root}/etc/rc.policy" - [ -r /etc/resolv.conf ] && cp /etc/resolv.conf "${root}/etc" - [ -r /etc/hostname ] && cp /etc/hostname "${root}/etc" + if [ "x${plat}" = 'xdev' ]; then + [ -r /etc/resolv.conf ] && cp /etc/resolv.conf "${root}/etc" + [ -r /etc/hostname ] && cp /etc/hostname "${root}/etc" + else + printf 'enabled\n' >"${root}/etc/rc.policy" + printf 'proteanos\n' >"${root}/etc/hostname" + fi [ -e "${root}/etc/passwd" ] || printf \ 'root::0:0:root:/root:/bin/sh\n' >"${root}/etc/passwd" [ -e "${root}/etc/group" ] || printf \ |