feat: add Fedora 44 bootstrap and shell customization scripts

This commit is contained in:
2026-06-12 20:53:46 +02:00
parent 777cf9ce32
commit af9dcf3f55
6 changed files with 273 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
#!/bin/bash
declare BASE_URL=https://git.netm.ch/m/os-init/raw/branch/main
declare FEDORAVER=0
showHelp() {
echo "fedora.sh"
echo ""
echo "use :"
echo "bash fedora.sh [options]"
echo " -b | --base-url url"
}
main() {
FEDORAVER=$(grep "VERSION_ID=" /etc/os-release | sed 's/"//g' | sed 's/.*=//')
dnf -y upgrade
dnf -y install wget newt
wget -O /tmp/init.sh "${BASE_URL}"/fedora-"${FEDORAVER}"/init.sh
bash /tmp/init.sh -b "${BASE_URL}"
rm /tmp/init.sh
}
while [ ${#} -gt 0 ]; do
case ${1} in
--help) showHelp; exit 0;;
-b | --base-url) BASE_URL="${2}"; shift;;
*) shift;;
esac
done
main