general clean-up

This commit is contained in:
shelldweller 2023-06-13 11:01:26 -05:00
parent 97aa8075eb
commit e8dff16d8f
5 changed files with 113 additions and 112 deletions

View File

@ -3,13 +3,13 @@ Both 64-bit and 32-bit versions can be converted.
There are 4 scripts in total:
1) slackware2freenix.sh
# slackware2freenix.sh
This is a meta-script that just runs the other three with necessary arguments.
Needs to be run as root.
2) remove-blacklist-nonfree-packages.sh
# remove-blacklist-nonfree-packages.sh
This removes and blacklists all non-free packages as per freenix.net.
This script can probably be run on any Slackware-based derivative, as long as slackpkg is present.
@ -19,7 +19,7 @@ arguments:
BLACKLISTFILE = the location of your slackpkg blacklist file (default = /etc/slackpkg/blacklist)
3) linux-libre-kernel-build-instsall.sh
# linux-libre-kernel-build-instsall.sh
This builds and installs the Linux-Libre kernel, headers, modules.
Modifies stock kernel-configs and SlackBuild files.
@ -43,7 +43,7 @@ BLACKLISTFILE = the location of your slackpkg blacklist file (default = /etc/sla
INSTALL_KERNEL = install packages after building them (default = no)
4) linux-libre-firmware-build-install.sh
# linux-libre-firmware-build-install.sh
This builds and installs the Linux-libre firmware.
Modifies stock SlackBuild file.
@ -61,7 +61,8 @@ BLACKLISTFILE = the location of your slackpkg blacklist file (default = /etc/sla
INSTALL_FIRMWARE = install packages after building them (default = no)
NOTE: The script DOES NOT clean up after itself.
## NOTE:
The script DOES NOT clean up after itself.
You are invited to delete any leftover files and directories in /tmp/ .
However, the modified SlackBuild scripts and kernel packages all reside there.
You may want to save or share these before clearing out /tmp/ .

View File

@ -34,9 +34,9 @@ BLACKLISTFILE=${BLACKLISTFILE:-'/etc/slackpkg/blacklist'}
INSTALL_FIRMWARE=${INSTALL_FIRMWARE:-'no'}
# download linux-libre firmware
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "% Downloading Linux-Libre firmware"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo '% Downloading Linux-Libre firmware'
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
rm -r ${BUILDDIR}/firmware
mkdir ${BUILDDIR}/firmware
@ -48,9 +48,9 @@ chmod a+x kernel-firmware-gnu.SlackBuild
# patch SlackBuild and slack-desc to fit linux-libre-firmware using:
# sed -i 's/ --- / --- /' slack-desc
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "% Patching SlackBuild and slack-desc files for linux-libre"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo '% Patching SlackBuild and slack-desc files for linux-libre'
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
# patch kernel-firmware.SlackBuild
sed -i 's/PKGNAM=kernel-firmware/PKGNAM=kernel-firmware-gnu/' kernel-firmware-gnu.SlackBuild
sed -i 's/.*git.kernel.org\/pub\/scm\/linux\/kernel\/git\/firmware\/linux-firmware.git\/commit\/?id=HEAD | grep " committer " | head -n 1 | rev | cut -f 3 -d.*/ DATE="$(lynx -dump -width=256 https:\/\/jxself.org\/git\/linux-libre-firmware.git | grep "last change" | head -n 1 | cut -f 2 -d "," | cut -d" " -f2-4 | tr -d " ")"/' kernel-firmware-gnu.SlackBuild
@ -66,18 +66,18 @@ sed -i 's/Linux/Linux-libre/' slack-desc
sed -i 's/git.kernel.org\/pub\/scm\/linux\/kernel\/git\/firmware\/linux-firmware.git/jxself.org\/git\/linux-libre-firmware.git/' slack-desc
# build firmware package
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "% Building Linux-Libre firmware"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo '% Building Linux-Libre firmware'
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
TMP=${BUILDDIR}/firmware ./kernel-firmware-gnu.SlackBuild
if [ $INSTALL_FIRMWARE == 'no' ]; then
# that should do it!
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "% Linux-libre firmware has been built."
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo '% Linux-libre firmware has been built.'
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
cd ${CWD0}
exit 0
@ -85,20 +85,20 @@ exit 0
fi
# Remove stock firmware package
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "% Removing stock firmware package"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo '% Removing stock firmware package'
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
removepkg kernel-firmware
# install firmware package
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "% Installing Linux-Libre firmware"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo '% Installing Linux-Libre firmware'
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
installpkg ${BUILDDIR}/firmware/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

View File

@ -39,9 +39,9 @@ REPOURL=${REPOURL:-'https://mirrors.slackware.com'}
STOCKVERSION=${STOCKVERSION:-$(wget -q -O - $REPOURL/slackware/slackware64-$RELEASE/patches/source/ | grep -o -P '(?<=>linux-).*(?=\/<)')}
# download kernel SlackBuild scripts
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "% Downloading stock kernel SlackBuild files."
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo '% Downloading stock kernel SlackBuild files.'
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
wget $REPOURL/slackware/slackware64-$RELEASE/patches/source/linux-${STOCKVERSION}/kernel-generic.SlackBuild
wget $REPOURL/slackware/slackware64-$RELEASE/patches/source/linux-${STOCKVERSION}/kernel-headers.SlackBuild
wget $REPOURL/slackware/slackware64-$RELEASE/patches/source/linux-${STOCKVERSION}/kernel-modules.SlackBuild
@ -57,11 +57,11 @@ sed -i 's/oldconfig/olddefconfig/' kernel-source.SlackBuild
MAJORVERSION=${MAJORVERSION:-$(wget -q -O - $REPOURL/slackware/slackware64-$RELEASE/patches/source/ | grep -o -P '(?<=>linux-).*(?=\/<)' | sed 's/\.[^.]*$//')}
# download latest Linux-Libre source in the same branch as the stock kernel
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "% Downloading Linux-Libre source."
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
wget -r -l1 -np -nd "http://linux-libre.fsfla.org/pub/linux-libre/releases/LATEST-${MAJORVERSION}.N" -A "linux-libre-${MAJORVERSION}.*-gnu.tar.lz*"
wget -r -l1 -np -nd "http://linux-libre.fsfla.org/pub/linux-libre/releases/LATEST-${MAJORVERSION}.N" -A "linux-libre-${MAJORVERSION}.*-gnu.tar.sign"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo '% Downloading Linux-Libre source.'
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
wget -r -l1 -np -nd 'http://linux-libre.fsfla.org/pub/linux-libre/releases/LATEST-${MAJORVERSION}.N' -A 'linux-libre-${MAJORVERSION}.*-gnu.tar.lz*'
wget -r -l1 -np -nd 'http://linux-libre.fsfla.org/pub/linux-libre/releases/LATEST-${MAJORVERSION}.N' -A 'linux-libre-${MAJORVERSION}.*-gnu.tar.sign'
wget http://linux-libre.fsfla.org/pub/linux-libre/SIGNING-KEY.linux-libre
gpg --import SIGNING-KEY.linux-libre
gpg --verify *tar.lz.sign
@ -70,9 +70,9 @@ LIBREVERSION=${LIBREVERSION:-$(ls linux-libre-*-gnu.tar.lz | sed 's/[^0-9.]*//g'
ln -s linux-libre-${LIBREVERSION}-gnu.tar.lz linux-${LIBREVERSION}.tar.lz
# grab most recent stock kernel-configs and use them as latest libre-configs
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "% Downloading stock kernel-configs for use with libre-kernel."
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo '% Downloading stock kernel-configs for use with libre-kernel.'
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
mkdir kernel-configs
cd kernel-configs
wget $REPOURL/slackware/slackware64-$RELEASE/patches/source/linux-${STOCKVERSION}/kernel-configs/config-generic-${STOCKVERSION} -O config-generic-${LIBREVERSION}
@ -84,9 +84,9 @@ wget $REPOURL/slackware/slackware64-$RELEASE/patches/source/linux-${STOCKVERSION
cd ../
# Grab slack-desc files for packaging later
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "% Downloading slack-desc files for kernel-packages."
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo '% Downloading slack-desc files for kernel-packages.'
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
mkdir slack-desc
cd slack-desc
wget $REPOURL/slackware/slackware64-$RELEASE/patches/source/linux-${STOCKVERSION}/slack-desc/slack-desc.kernel-generic-smp.i686
@ -105,22 +105,22 @@ cd ../
# Build Linux-Libre packages
wget $REPOURL/slackware/slackware64-$RELEASE/patches/source/linux-${STOCKVERSION}/build-all-kernels.sh
chmod +x build-all-kernels.sh
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "% Now building the kernels using Pat's script, this may take some time."
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo '% Now building the kernels using Pat`s script, this may take some time.'
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
INSTALL_PACKAGES=NO ./build-all-kernels.sh
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "% We're done with Pat's script. Thanks Pat!"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo '% We are done with Pat`s script. Thanks Pat!'
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
if [ $INSTALL_KERNEL == 'no' ]; then
# that should do it!
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "% Linux-libre kernel packages have been built."
echo "% The last step is to build the firmware package, do this by running:"
echo "% ./linux-libre-firmware-builder-installer.sh"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo '% Linux-libre kernel packages have been built.'
echo '% The last step is to build the firmware package, do this by running:'
echo '% ./linux-libre-firmware-builder-installer.sh'
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
cd ${CWD0}
exit 0
@ -128,31 +128,31 @@ exit 0
fi
# Upgrade kernel packages all at once
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "% Upgrading stock kernel packages to libre kernel packages."
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo '% Upgrading stock kernel packages to libre kernel packages.'
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
upgradepkg /tmp/output-*/kernel-*.t?z
# Now generate new initrd and update the bootloader
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "% Running genintird and lilo."
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo '% Running genintird and lilo.'
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
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
echo "###################################################################" >> $BLACKLISTFILE
echo "# Kernel packages removed to prevent stock kernel being reinstalled" >> $BLACKLISTFILE
echo "kernel-generic.*" >> $BLACKLISTFILE
echo "kernel-headers.*" >> $BLACKLISTFILE
echo "kernel-huge.*" >> $BLACKLISTFILE
echo "kernel-modules.*" >> $BLACKLISTFILE
echo "kernel-source" >> $BLACKLISTFILE
echo "kernel.*" >> $BLACKLISTFILE
echo '#' >> $BLACKLISTFILE
echo '###################################################################' >> $BLACKLISTFILE
echo '# Kernel packages removed to prevent stock kernel being reinstalled' >> $BLACKLISTFILE
echo 'kernel-generic.*' >> $BLACKLISTFILE
echo 'kernel-headers.*' >> $BLACKLISTFILE
echo 'kernel-huge.*' >> $BLACKLISTFILE
echo 'kernel-modules.*' >> $BLACKLISTFILE
echo 'kernel-source' >> $BLACKLISTFILE
echo 'kernel.*' >> $BLACKLISTFILE
# Print out new blacklist
cat $BLACKLISTFILE
@ -160,11 +160,11 @@ cat $BLACKLISTFILE
fi
# that should do it!
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "% Stock kernel packages have been upgraded to libre kernel packages."
echo "% The last step is to upgrade the firmware package, do this by running:"
echo "% ./linux-libre-firmware-builder-installer.sh"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo '% Stock kernel packages have been upgraded to libre kernel packages.'
echo '% The last step is to upgrade the firmware package, do this by running:'
echo '% ./linux-libre-firmware-builder-installer.sh'
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
cd ${CWD0}
exit 0

View File

@ -18,7 +18,7 @@
####################################################################################
# Set blacklist file, just in case...
BLACKLISTFILE=${BLACKLISTFILE:-"/etc/slackpkg/blacklist"}
BLACKLISTFILE=${BLACKLISTFILE:-'/etc/slackpkg/blacklist'}
# Remove non-free stock packages from full stock installation
# Comment out any you'd like to keep
@ -38,36 +38,36 @@ 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
echo "##############################################" >> $BLACKLISTFILE
echo "# Non-free packages removed as per freenix.net" >> $BLACKLISTFILE
echo "amp" >> $BLACKLISTFILE
echo "bluez-firmware" >> $BLACKLISTFILE
echo "font-bh-ttf" >> $BLACKLISTFILE
echo "font-bh-type1" >> $BLACKLISTFILE
echo "ipw2100-fw" >> $BLACKLISTFILE
echo "ipw2200-fw" >> $BLACKLISTFILE
echo "mozilla-firefox" >> $BLACKLISTFILE
echo "mozilla-thunderbird" >> $BLACKLISTFILE
echo "seamonkey" >> $BLACKLISTFILE
echo "skkdic" >> $BLACKLISTFILE
echo "unarj" >> $BLACKLISTFILE
echo "xgames" >> $BLACKLISTFILE
echo "zd1211-firmware" >> $BLACKLISTFILE
echo '#' >> $BLACKLISTFILE
echo '##############################################' >> $BLACKLISTFILE
echo '# Non-free packages removed as per freenix.net' >> $BLACKLISTFILE
echo 'amp' >> $BLACKLISTFILE
echo 'bluez-firmware' >> $BLACKLISTFILE
echo 'font-bh-ttf' >> $BLACKLISTFILE
echo 'font-bh-type1' >> $BLACKLISTFILE
echo 'ipw2100-fw' >> $BLACKLISTFILE
echo 'ipw2200-fw' >> $BLACKLISTFILE
echo 'mozilla-firefox' >> $BLACKLISTFILE
echo 'mozilla-thunderbird' >> $BLACKLISTFILE
echo 'seamonkey' >> $BLACKLISTFILE
echo 'skkdic' >> $BLACKLISTFILE
echo 'unarj' >> $BLACKLISTFILE
echo 'xgames' >> $BLACKLISTFILE
echo 'zd1211-firmware' > $BLACKLISTFILE
fi
# Print out new blacklist
cat $BLACKLISTFILE
# Prepare for kernel building
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "% Non-free software is removed and blacklisted."
echo "% To (re)build a libre kernel for your system, run: "
echo "% ./linux-libre-kernel-builder-installer.sh"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
# All done, now for the kernels....
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo '% Non-free software is removed and blacklisted.'
echo '% To (re)build a libre kernel for your system, run: '
echo '% ./linux-libre-kernel-builder-installer.sh'
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
exit 0

View File

@ -15,29 +15,29 @@
#######################################################################
# remove and blacklist non-free packages
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "% remove and blacklist non-free packages"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo '% remove and blacklist non-free packages'
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
./remove-blacklist-nonfree-packages.sh
# Build and install linux-libre kernel packages
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "% build and install Linux-libre kernel packages"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo '% build and install Linux-libre kernel packages'
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
INSTALL_KERNEL='yes' ./linux-libre-kernel-builder-installer.sh
# Build and install linux-libre firmware package
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "% build and install Linux-libre firmware package"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo '% build and install Linux-libre firmware package'
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
INSTALL_FIRMWARE='yes' ./linux-libre-firmware-builder-installer.sh
# Say goodbye...
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "% You are now fully liberated, you can reboot the system."
echo "% This script does not clean up after itself, you can"
echo "% manually remove the files in /tmp/, however the packages"
echo "% and SlackBuilds that resulted from this process are there"
echo "% in case you want to save or share them for any reason."
echo "% "
echo "% Welcome to Freenix. See https://freenix.net/ for more."
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
echo '% You are now fully liberated, you can reboot the system.'
echo '% This script does not clean up after itself, you can'
echo '% manually remove the files in /tmp/, however the packages'
echo '% and SlackBuilds that resulted from this process are there'
echo '% in case you want to save or share them for any reason.'
echo '% '
echo '% See https://freenix.net/ for more information.'
echo '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
exit 0