tty: minor cleanup (dedup)

Fixes: cce781d46b5e8c37034018a363ffffa5e48bf93e
This commit is contained in:
Michael Shigorin 2023-07-11 07:55:33 +03:00 committed by Anton Midyukov
parent 4c9f28b89b
commit b1fbb6337f

View File

@ -17,12 +17,8 @@ if ! grep -q "$BIN" "$CFG"; then
done done
fi fi
EXTLINUXCFG=/boot/extlinux/extlinux.conf for c in /boot/extlinux/extlinux.conf /etc/sysconfig/grub2; do
if [ -f "$EXTLINUXCFG" ]; then if [ -f "$c" ]; then
sed -i "s/ quiet / /g;s/ quiet'/'/" "$EXTLINUXCFG" sed -i "s/ quiet / /g;s/ quiet'/'/" "$c"
fi fi
done
GRUBCFG=/etc/sysconfig/grub2
if [ -f "$GRUBCFG" ]; then
sed -i "s/ quiet / /g;s/ quiet'/'/" "$GRUBCFG"
fi