You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
460 B
22 lines
460 B
3 years ago
|
#!/bin/sh
|
||
|
|
||
|
# the part below relates to systemd as init specifically
|
||
|
rpm -q systemd-sysvinit || exit 0
|
||
|
|
||
|
# file str [str...]
|
||
|
# NB: str is also treated as a regex,
|
||
|
# be careful if you copy the function
|
||
|
sub() {
|
||
|
local file="$1"
|
||
|
shift
|
||
|
for i in "$@"; do
|
||
|
grep -q "^$i" "$file" || echo "$i" >> "$file"
|
||
|
done
|
||
|
}
|
||
|
|
||
|
# tune make-initrd
|
||
|
sub /etc/initrd.mk 'MODULES_TRY_ADD += autofs4'
|
||
|
|
||
|
# don't allow systemd to set LANG (see also #27408)
|
||
|
sub /etc/locale.conf 'LANG='
|