base: Load iso9660 and add a desktop icon when mounting CD at boot

This commit is contained in:
K. Lange 2021-10-07 20:22:10 +09:00
parent 8d9c13c047
commit 46c59e8786

View File

@ -4,4 +4,11 @@ if not stat -Lq /dev/cdrom0 then exit 0
echo -n "Mounting CD..." > /dev/pex/splash
insmod /mod/iso9660.ko
mount iso /dev/cdrom0 /cdrom
# Does it look like it might be ours?
if not stat -Lq /cdrom/bootcat then exit 0
echo -e "icon=cd\nrun=cd /cdrom ; exec file-browser\ntitle=CD-ROM" > /home/local/Desktop/5_cdrom.launcher