From 3c980523b904caa0ff1ad1406986e28fe4f655fb Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 03 Dec 2014 21:56:05 -0500 Subject: prof_proteanos_configure_system_native(): Check plat Don't enable services on dev. Set hostname to "proteanos" on non-dev platforms. --- 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 \ -- cgit v0.9.1