toaruos/base/etc/startup.d/05_mountcd.sh
2023-05-05 22:30:33 +09:00

15 lines
339 B
Bash
Executable File

#!/bin/esh
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