summaryrefslogtreecommitdiffstats
path: root/inst
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2018-01-13 00:53:46 (EST)
committer P. J. McDermott <pj@pehjota.net>2018-01-13 00:53:46 (EST)
commit4e79957c48265921bc48c84b37894bd4eb4cbc04 (patch)
tree80ba16f70616aff021c12a07c1908043d66a2f3e /inst
parent808834f8d0953bc9ee3635f0e31bc8ea62dfd916 (diff)
downloadpc-inst-4e79957c48265921bc48c84b37894bd4eb4cbc04.zip
pc-inst-4e79957c48265921bc48c84b37894bd4eb4cbc04.tar.gz
pc-inst-4e79957c48265921bc48c84b37894bd4eb4cbc04.tar.bz2
main(): Update host config and package list paths
Diffstat (limited to 'inst')
-rwxr-xr-xinst10
1 files changed, 5 insertions, 5 deletions
diff --git a/inst b/inst
index 9e01655..6189752 100755
--- a/inst
+++ b/inst
@@ -462,7 +462,7 @@ usage()
main()
{
- local host_files_pfx=
+ local host_dir=
local log=
exec 3>&1
@@ -472,15 +472,15 @@ main()
return 1
fi
host="${1}"
- host_files_pfx="$(dirname "${0}")/hosts/${host}"
- if ! [ -r "${host_files_pfx}" ]; then
+ host_dir="$(dirname "${0}")/hosts/${host}"
+ if ! [ -d "${host_dir}" ]; then
err '%s: Unknown host' "${host}"
return 1
fi
dev="${2}"
- . "${host_files_pfx}"
- postinst_pkgs="$(sed 's/#.*$//;' "${host_files_pfx}.pkgs")"
+ . "${host_dir}/conf"
+ postinst_pkgs="$(sed 's/#.*$//;' "${host_dir}/pkgs")"
log="$(mktemp)"
exec 4>"${log}"