Browse Source

change option name

master
belliash 7 years ago
parent
commit
9b9606fca7
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      config/modules/openrc-branding.conf
  2. 1
    1
      modules/openrc-branding.ezmod

+ 1
- 1
config/modules/openrc-branding.conf View File

@@ -1,3 +1,3 @@
1 1
 # This directive defines the new branding for OpenRC that will be set by openrc-branding
2 2
 # module. Usually this should be a distribution name.
3
-CUSTOM_OPENRC_BRAND="MyOwn"
3
+CUSTOM_BRANDING="MyOwn"

+ 1
- 1
modules/openrc-branding.ezmod View File

@@ -8,7 +8,7 @@ EZMOD_VERSION="1.0"
8 8
 ezsync_precommit() {
9 9
 	printInfo "Enabling custom OpenRC branding..."
10 10
 	find ${PORTAGESDIR}/${PORTAGE_BUILD[0]}/sys-apps/openrc -type f -name \*.ebuild | while read EBUILD; do
11
-		sed -i "s/BRANDING=\"Gentoo \${brand}\"/BRANDING=\"${CUSTOM_OPENRC_BRAND} \${brand}\"/g" ${EBUILD} || return 1
11
+		sed -i "s/BRANDING=\"Gentoo \${brand}\"/BRANDING=\"${CUSTOM_BRANDING} \${brand}\"/g" ${EBUILD} || return 1
12 12
 	done
13 13
 	return 0
14 14
 }

Loading…
Cancel
Save