forked from ungleich-public/cdist
[type/__locale_system] Add support for Slackware
This commit is contained in:
parent
a923e75d9b
commit
511d8c96aa
1 changed files with 7 additions and 1 deletions
|
@ -141,6 +141,12 @@ in
|
||||||
locale_conf_mode=0555
|
locale_conf_mode=0555
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
slackware)
|
||||||
|
# NOTE: lang.csh (csh config) is ignored here.
|
||||||
|
locale_conf="/etc/profile.d/lang.sh"
|
||||||
|
locale_conf_mode=0755
|
||||||
|
key="export ${__object_id}"
|
||||||
|
;;
|
||||||
suse)
|
suse)
|
||||||
os_version=$(cat "${__global}/explorer/os_version")
|
os_version=$(cat "${__global}/explorer/os_version")
|
||||||
os_major=$(expr "${os_version}" : '\([0-9]\{1,\}\)')
|
os_major=$(expr "${os_version}" : '\([0-9]\{1,\}\)')
|
||||||
|
@ -176,7 +182,7 @@ __file "${locale_conf}" --state exists \
|
||||||
--mode "${locale_conf_mode:-0644}"
|
--mode "${locale_conf_mode:-0644}"
|
||||||
|
|
||||||
require="__file/${locale_conf}" \
|
require="__file/${locale_conf}" \
|
||||||
__key_value "${locale_conf}:${key}" \
|
__key_value "${locale_conf}:${key#export }" \
|
||||||
--file "${locale_conf}" \
|
--file "${locale_conf}" \
|
||||||
--key "${key}" \
|
--key "${key}" \
|
||||||
--delimiter '=' --exact_delimiter \
|
--delimiter '=' --exact_delimiter \
|
||||||
|
|
Loading…
Reference in a new issue