From 1fae38ae785c42c9dfd93dd2660353b898447f27 Mon Sep 17 00:00:00 2001
From: Patrick McDermott <patrick.mcdermott@libiquity.com>
Date: Thu, 25 Apr 2019 23:43:29 -0400
Subject: src/profile/proteanos.sh: Shift function arguments

---
(limited to 'src')

diff --git a/src/profile/proteanos.sh b/src/profile/proteanos.sh
index 99cf56e..f027b65 100644
--- a/src/profile/proteanos.sh
+++ b/src/profile/proteanos.sh
@@ -40,6 +40,7 @@ start()
 prof_proteanos_detect_root()
 {
 	local root="${1}"
+	shift 1
 
 	if grep "^ID='proteanos'\$" "${root}/etc/os-release" >/dev/null 2>&1
 	then
@@ -52,6 +53,7 @@ prof_proteanos_detect_root()
 prof_proteanos_normalize_suite()
 {
 	local suite="${1}"
+	shift 1
 
 	case "${suite}" in
 		*/*) printf '%s\n' "${suite}";;
@@ -110,6 +112,7 @@ prof_proteanos_validate_archplat()
 	local arch="${2}"
 	local plat="${3}"
 	local suite="${4}"
+	shift 4
 
 	while read -r archplat; do
 		case "${archplat}" in
@@ -143,6 +146,7 @@ prof_proteanos_feeds()
 	local arch="${2}"
 	local plat="${3}"
 	local suite="${4}"
+	shift 4
 	local a=
 	local p=
 	local s=
@@ -173,6 +177,7 @@ prof_proteanos_feeds()
 prof_proteanos_get_cert_url()
 {
 	local mirror="${1}"
+	shift 1
 
 	printf '%s/archive.cert' "${mirror}"
 	return 0
@@ -195,6 +200,7 @@ prof_proteanos_include_pkg()
 {
 	local name="${1}"
 	local value="${2}"
+	shift 2
 
 	if [ "x${name}" = 'xessential' ]; then
 		if [ "x${value}" = 'xyes' ]; then
@@ -209,6 +215,7 @@ prof_proteanos_get_fstab()
 {
 	local arch="${1}"
 	local plat="${2}"
+	shift 2
 
 	case "${arch}" in
 		*-linux-*)
@@ -222,6 +229,7 @@ prof_proteanos_file_systems_mounted()
 	local root="${1}"
 	local arch="${2}"
 	local plat="${3}"
+	shift 3
 
 	[ -e "${root}/dev/null" ]
 }
@@ -232,6 +240,7 @@ prof_proteanos_bind_mount()
 	local plat="${2}"
 	local olddir="${3}"
 	local newdir="${4}"
+	shift 4
 
 	case "${arch}" in
 		*-linux-*)
@@ -246,6 +255,7 @@ prof_proteanos_bind_umount()
 	local plat="${2}"
 	local olddir="${3}"
 	local newdir="${4}"
+	shift 4
 
 	case "${arch}" in
 		*-linux-*)
@@ -259,6 +269,7 @@ prof_proteanos_configure_system_native()
 	local root="${1}"
 	local arch="${2}"
 	local plat="${3}"
+	shift 3
 
 	printf 'disabled\n' >"${root}/etc/rc.policy"
 	opkg_install_all "${root}"
@@ -280,6 +291,7 @@ prof_proteanos_configure_system_foreign()
 	local root="${1}"
 	local arch="${2}"
 	local plat="${3}"
+	shift 3
 
 	printf '%s' "${prof_proteanos_install_service}" \
 		>"${root}/etc/rc.d/S10install"
@@ -296,6 +308,7 @@ prof_proteanos_find_kernel()
 	local root="${1}"
 	local arch="${2}"
 	local plat="${3}"
+	shift 3
 	local kernel=
 
 	case "${arch}" in
@@ -315,6 +328,7 @@ prof_proteanos_make_initramfs()
 {
 	local arch="${1}"
 	local plat="${2}"
+	shift 2
 	local init_created=
 
 	case "${arch}" in
--
cgit v0.9.1