change option name
This commit is contained in:
parent
7480ea769b
commit
9b9606fca7
|
@ -1,3 +1,3 @@
|
||||||
# This directive defines the new branding for OpenRC that will be set by openrc-branding
|
# This directive defines the new branding for OpenRC that will be set by openrc-branding
|
||||||
# module. Usually this should be a distribution name.
|
# module. Usually this should be a distribution name.
|
||||||
CUSTOM_OPENRC_BRAND="MyOwn"
|
CUSTOM_BRANDING="MyOwn"
|
||||||
|
|
|
@ -8,7 +8,7 @@ EZMOD_VERSION="1.0"
|
||||||
ezsync_precommit() {
|
ezsync_precommit() {
|
||||||
printInfo "Enabling custom OpenRC branding..."
|
printInfo "Enabling custom OpenRC branding..."
|
||||||
find ${PORTAGESDIR}/${PORTAGE_BUILD[0]}/sys-apps/openrc -type f -name \*.ebuild | while read EBUILD; do
|
find ${PORTAGESDIR}/${PORTAGE_BUILD[0]}/sys-apps/openrc -type f -name \*.ebuild | while read EBUILD; do
|
||||||
sed -i "s/BRANDING=\"Gentoo \${brand}\"/BRANDING=\"${CUSTOM_OPENRC_BRAND} \${brand}\"/g" ${EBUILD} || return 1
|
sed -i "s/BRANDING=\"Gentoo \${brand}\"/BRANDING=\"${CUSTOM_BRANDING} \${brand}\"/g" ${EBUILD} || return 1
|
||||||
done
|
done
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user