diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-07-02 18:36:56 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-07-02 18:36:56 (EDT) |
commit | dcf9e96aa3a3530b6f0e6afba8dc0c102b89dd51 (patch) | |
tree | 7cc6010e62dc3800b085d46783630fbe0573737a /src/profile | |
parent | 6adc62fcdae9d61358ce6fc9fae919d5cbc75156 (diff) |
Prefix "static" vars with "_"
Diffstat (limited to 'src/profile')
-rw-r--r-- | src/profile/proteanos.sh | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/profile/proteanos.sh b/src/profile/proteanos.sh index 08916cd..3bed6c4 100644 --- a/src/profile/proteanos.sh +++ b/src/profile/proteanos.sh @@ -18,13 +18,13 @@ # along with the ProteanOS Development Kit. If not, see # <http://www.gnu.org/licenses/>. -prof_proteanos_fstab_linux="\ +_prof_proteanos_fstab_linux="\ proc /proc proc defaults sys /sys sysfs defaults /dev /dev none bind devpts /dev/pts devpts noexec,nosuid,gid=5,mode=0620 " -prof_proteanos_install_service=\ +_prof_proteanos_install_service=\ '#!/bin/sh /etc/rc.common start() @@ -36,7 +36,7 @@ start() rm -f "${SCRIPT}" } ' -prof_proteanos_manifest='' +_prof_proteanos_manifest='' prof_proteanos_detect_root() { @@ -118,8 +118,8 @@ prof_proteanos_validate_archplat() shift 4 local archplat= - [ -z "${prof_proteanos_manifest}" ] && \ - prof_proteanos_manifest="$(${WGET} -q -O - -- \ + [ -z "${_prof_proteanos_manifest}" ] && \ + _prof_proteanos_manifest="$(${WGET} -q -O - -- \ "${mirror}/feeds/${suite}/Manifest")" while read -r archplat; do @@ -130,7 +130,7 @@ prof_proteanos_validate_archplat() ;; esac done <<-EOF - ${prof_proteanos_manifest} + ${_prof_proteanos_manifest} EOF return 1 @@ -160,8 +160,8 @@ prof_proteanos_feeds() local p= local s= - [ -z "${prof_proteanos_manifest}" ] && \ - prof_proteanos_manifest="$(${WGET} -q -O - -- \ + [ -z "${_prof_proteanos_manifest}" ] && \ + _prof_proteanos_manifest="$(${WGET} -q -O - -- \ "${mirror}/feeds/${suite}/Manifest")" case "${plat}" in @@ -175,7 +175,7 @@ prof_proteanos_feeds() for a in "${arch}" 'all'; do for p in "${plat}" 'all'; do for s in ${sects}; do - case "${LF}${prof_proteanos_manifest}${LF}" in + case "${LF}${_prof_proteanos_manifest}${LF}" in *"${LF}${a}/${p}/${s}${LF}"*) ;; *) continue;; esac @@ -244,7 +244,7 @@ prof_proteanos_get_fstab() case "${arch}" in *-linux-*) - printf '%s\n' "${prof_proteanos_fstab_linux}" + printf '%s\n' "${_prof_proteanos_fstab_linux}" ;; esac } @@ -318,7 +318,7 @@ prof_proteanos_configure_system_foreign() local plat="${3}" shift 3 - printf '%s' "${prof_proteanos_install_service}" \ + printf '%s' "${_prof_proteanos_install_service}" \ >"${root}/etc/rc.d/S10install" chmod -- 0755 "${root}/etc/rc.d/S10install" printf 'proteanos\n' >"${root}/etc/hostname" |