Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Line number 360-405 of make-tazpup
- echo "Mounting $(basename $IMGPUP)..."
- mount -o ro $IMGPUP /mnt/wktaz
- if [ $? -ne 0 ]; then
- echo "Mounting puppy image failed"
- exit
- fi
- rootfslist="$(find /mnt/wktaz -type f -name "*.sfs")"
- if [ "$rootfslist" == "" ]; then
- echo "Not a puppy disc image"
- umount /mnt/wktaz
- exit
- fi
- echo "Copying puppy kernel...."
- cp -f /mnt/wktaz/vmlinuz $curdir/tazpup-preiso/
- echo "Searching for kernel modules..."
- for file1 in $(find /mnt/wktaz -type f -name "*.sfs")
- do
- mount -t squashfs $file1 /mnt/wksfs
- if [ $? -eq 0 ]; then
- if [ -d /mnt/wksfs/lib/modules ]; then
- echo "Copying kernel modules from $(basename $file1) to rootfs..."
- cp -rf /mnt/wksfs/lib/modules $curdir/slitaz-rootfs/lib/
- fi
- if [ -d /mnt/wksfs/etc/modules ]; then
- cp -rf /mnt/wksfs/etc/modules $curdir/slitaz-rootfs/etc/
- fi
- umount /mnt/wksfs
- fi
- done
- umount /mnt/wktaz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement