mirror of
https://github.com/linuxboot/heads.git
synced 2025-04-16 07:26:46 +00:00
Remove any duplicate config options from config.user
This commit is contained in:
parent
43a858e25c
commit
6ebabc5b94
@ -229,8 +229,8 @@ replace_config() {
|
||||
|
||||
# then copy any remaining settings from the existing config file, minus the option you changed
|
||||
grep -v "^export ${CONFIG_OPTION}=" ${CONFIG_FILE} | grep -v "^${CONFIG_OPTION}=" >> ${CONFIG_FILE}.tmp || true
|
||||
|
||||
mv ${CONFIG_FILE}.tmp ${CONFIG_FILE}
|
||||
sort ${CONFIG_FILE}.tmp | uniq > ${CONFIG_FILE}
|
||||
rm -f ${CONFIG_FILE}.tmp
|
||||
}
|
||||
combine_configs() {
|
||||
cat /etc/config* > /tmp/config
|
||||
|
Loading…
x
Reference in New Issue
Block a user