diff options
Diffstat (limited to 'lib/profile')
-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 \ |