2014-10-27

Slitaz -- core64 / CDROM

CDROM

1.
tux@slitaz:~$ dmesg | grep -e hda -e 9660
hda: PIONEER DVD-RW DVR-K06RS, ATAPI CD/DVD-ROM drive
hda: host max PIO4 wanted PIO255(auto-tune) selected PIO4
hda: UDMA/33 mode selected
ide-cd: hda: ATAPI 24X DVD-ROM DVD-R/RAM CD-R/RW drive, 2000kB Cache
snd_hda_intel 0000:00:1b.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
snd_hda_intel 0000:00:1b.0: setting latency timer to 64
ISO 9660 Extensions: Microsoft Joliet Level 3
ISO 9660 Extensions: IEEE_P1282
tux@slitaz:~$

2.
tux@slitaz:~$ mount | grep cdrom
/dev/hda on /media/cdrom type iso9660 (ro,nosuid,nodev,noexec,relatime)

3.
tux@slitaz:~$ cat /media/cdrom/install.sh
#!/bin/sh
#

DIR=$(cd $(dirname $0); pwd)

[ -d /var/cache/tazpkg ] || mkdir -p /var/cache/tazpkg
ls -d $DIR/packages/* > /var/lib/tazpkg/mirror
ln -fs $DIR/packages/*/*.tazpkg /var/cache/tazpkg/
ln -fs $DIR/packages/*/packages.* /var/lib/tazpkg
ln -fs $DIR/packages/*/files.list.lzma /var/lib/tazpkg
[ -d /var/www ] || mkdir -p /var/www
ln -s $DIR/website /var/www
tux@slitaz:~$