fixed $BLACKLIST if statements
This commit is contained in:
parent
0156dc82b4
commit
7ee7ce4ed1
|
@ -98,7 +98,7 @@ echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
|
|||
installpkg /tmp/kernel-firmware-gnu*
|
||||
|
||||
# Add non-free packages to blacklist if not already blacklisted
|
||||
if [ ! grep -q 'kernel-firmware' $BLACKLISTFILE ]; then
|
||||
if ! grep -q "kernel-firmware" $BLACKLISTFILE ; then
|
||||
|
||||
# Blacklist stock firmware package
|
||||
echo 'kernel-firmware' >> $BLACKLISTFILE
|
||||
|
|
|
@ -141,7 +141,7 @@ geninitrd
|
|||
lilo
|
||||
|
||||
# Add non-free packages to blacklist if not already blacklisted
|
||||
if [ ! grep -q "Kernel packages removed to prevent stock kernel being reinstalled" $BLACKLISTFILE ]; then
|
||||
if ! grep -q "Kernel packages removed to prevent stock kernel being reinstalled" $BLACKLISTFILE ; then
|
||||
|
||||
# Blacklist stock kernel packages
|
||||
echo "#" >> $BLACKLISTFILE
|
||||
|
|
|
@ -38,7 +38,7 @@ removepkg \
|
|||
zd1211-firmware \
|
||||
|
||||
# Add non-free packages to blacklist if not already blacklisted
|
||||
if [ ! grep -q "Non-free packages removed as per freenix.net" $BLACKLISTFILE]; then
|
||||
if ! grep -q "Non-free packages removed as per freenix.net" $BLACKLISTFILE ; then
|
||||
|
||||
# Comment out any to be excluded from blacklist
|
||||
echo "#" >> $BLACKLISTFILE
|
||||
|
|
Loading…
Reference in New Issue