spreaded if for more readability

This commit is contained in:
Bryan Joshua Pedini 2022-08-15 02:34:06 +02:00
parent a884f563f6
commit 710c15b064

View File

@ -2,7 +2,9 @@
xorriso -osirrox on -indev debian-11.3.0-amd64-netinst.iso -extract / isofiles
sudo sed -i '/vesamenu.c32/d' isofiles/isolinux/isolinux.cfg
if [[ $(grep timeout_style isofiles/boot/grub/grub.cfg) == "" ]]; then sudo sed -i 's/insmod play/set timeout_style=hidden\nset timeout=0\nset default=1\n\ninsmod play/' isofiles/boot/grub/grub.cfg; fi
if [[ $(grep timeout_style isofiles/boot/grub/grub.cfg) == "" ]]; then
sudo sed -i 's/insmod play/set timeout_style=hidden\nset timeout=0\nset default=1\n\ninsmod play/' isofiles/boot/grub/grub.cfg;
fi
chmod +w -R isofiles/install.amd/
gunzip isofiles/install.amd/initrd.gz