From 08b803200519b6324876b6ed573494a803de513d Mon Sep 17 00:00:00 2001
From: Patrick McDermott <patrick.mcdermott@libiquity.com>
Date: Fri, 19 Apr 2019 18:19:08 -0400
Subject: profile_opkg_state_dir(), profile_opkg_conf_file(): New functions

---
(limited to 'src')

diff --git a/src/profile.sh b/src/profile.sh
index b5e760e..de1213a 100644
--- a/src/profile.sh
+++ b/src/profile.sh
@@ -69,9 +69,10 @@ profile_detect()
 }
 
 for func in normalize_suite detect_arch default_plat select_mirror \
-		validate_archplat feeds get_cert_url get_root_key dep_fields \
-		include_pkg get_fstab file_systems_mounted bind_mount \
-		bind_umount configure_system_native configure_system_foreign \
-		find_kernel make_initramfs; do
+		validate_archplat opkg_state_dir opkg_conf_file feeds \
+		get_cert_url get_root_key dep_fields include_pkg get_fstab \
+		file_systems_mounted bind_mount bind_umount \
+		configure_system_native configure_system_foreign find_kernel \
+		make_initramfs; do
 	eval "profile_${func}() { \"prof_\${profile}_${func}\" \"\${@}\"; }"
 done
diff --git a/src/profile/proteanos.sh b/src/profile/proteanos.sh
index 321f8cc..6991937 100644
--- a/src/profile/proteanos.sh
+++ b/src/profile/proteanos.sh
@@ -125,6 +125,18 @@ prof_proteanos_validate_archplat()
 	return 1
 }
 
+prof_proteanos_opkg_state_dir()
+{
+	printf '/var/lib/opkg'
+	return 0
+}
+
+prof_proteanos_opkg_conf_file()
+{
+	printf '/etc/opkg/opkg.conf'
+	return 0
+}
+
 prof_proteanos_feeds()
 {
 	local mirror="${1}"
--
cgit v0.9.1