summaryrefslogtreecommitdiffstats
path: root/lib/profiles/proteanos.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/profiles/proteanos.sh')
-rw-r--r--lib/profiles/proteanos.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/profiles/proteanos.sh b/lib/profiles/proteanos.sh
index 4f52611..cddef89 100644
--- a/lib/profiles/proteanos.sh
+++ b/lib/profiles/proteanos.sh
@@ -17,6 +17,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+use opkg
+
# TODO: This should be replaced with a prof_proteanos_validate_archplat()
# function that gets valid architectures and platforms from the package archive
# (which pro-archman needs to list in the distribution).
@@ -161,3 +163,16 @@ prof_proteanos_get_fstab()
;;
esac
}
+
+prof_proteanos_configure_system_native()
+{
+ local root="${1}"
+
+ printf 'disabled\n' >"${root}/etc/rc.policy"
+ opkg_install_all
+ 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"
+ [ -e "${root}/etc/passwd" ] || printf \
+ 'root::0:0:root:/root:/bin/sh\n' >"${root}/etc/passwd"
+}