mirror of
https://github.com/hardenedlinux/harbian-audit.git
synced 2025-07-31 01:24:58 +02:00
Fix a bug for 8.1.3
This commit is contained in:
parent
ae142b1cf9
commit
f5b0d991c4
@ -55,17 +55,17 @@ apply () {
|
||||
elif [ $FNRET = 2 ]; then
|
||||
warn "$OPTION is not present in $FILE, add it to $KEYWORD line, need to reboot the system after setting it"
|
||||
sed -i "s;\(${KEYWORD}=\)\(\".*\)\(\"\);\1\2 ${OPTION}=${SETVAL}\3;" $FILE
|
||||
if [ OS_RELEASE -eq 1 ]; then
|
||||
if [ $OS_RELEASE -eq 1 ]; then
|
||||
usr/sbin/update-grub2
|
||||
elif [ OS_RELEASE -eq 2 ]; then
|
||||
elif [ $OS_RELEASE -eq 2 ]; then
|
||||
grub2-mkconfig –o /boot/grub2/grub.cfg
|
||||
fi
|
||||
elif [ $FNRET = 3 ]; then
|
||||
warn "Parameter $OPTION is present but with the wrong value -- Fixing, need to reboot the system after setting it"
|
||||
sed -i "s/${OPTION}=./${OPTION}=${SETVAL}/" $FILE
|
||||
if [ OS_RELEASE -eq 1 ]; then
|
||||
if [ $OS_RELEASE -eq 1 ]; then
|
||||
usr/sbin/update-grub2
|
||||
elif [ OS_RELEASE -eq 2 ]; then
|
||||
elif [ $OS_RELEASE -eq 2 ]; then
|
||||
grub2-mkconfig –o /boot/grub2/grub.cfg
|
||||
fi
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user