diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-19 18:19:08 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-19 18:19:08 (EDT) |
commit | 08b803200519b6324876b6ed573494a803de513d (patch) | |
tree | 367608fd8e9cf57d019a522ce7b5cd7552ac0d36 /src | |
parent | 9eb57210dca480ed851e7f6a988e04438c15e604 (diff) |
profile_opkg_state_dir(), profile_opkg_conf_file(): New functions
Diffstat (limited to 'src')
-rw-r--r-- | src/profile.sh | 9 | ||||
-rw-r--r-- | src/profile/proteanos.sh | 12 |
2 files changed, 17 insertions, 4 deletions
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}" |