Subversion Repositories livecd

Rev

Rev 215 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 215 Rev 230
Line 280... Line 280...
280
	    mv -f /lib/modules/$mod_dir $cleaned_dir/
280
	    mv -f /lib/modules/$mod_dir $cleaned_dir/
281
        fi
281
        fi
282
    fi
282
    fi
283
done
283
done
284
 
284
 
-
 
285
### emacs-21.3 and emacs are hard links (and large 4.3MB) 
-
 
286
if [ ! $DVD ] then
-
 
287
 
-
 
288
    if [ -f /usr/bin/emacs-21.3 ]; then
-
 
289
	rm /usr/bin/emacs-21.3
-
 
290
	ln -s emacs /usr/bin/emacs-21.3
-
 
291
    fi
-
 
292
 
-
 
293
fi
-
 
294
 
285
### move some unneeded files to /mini (not for LiveDVD and miniCD)
295
### move some unneeded files to /mini (not for LiveDVD and miniCD)
286
#   to save disk space
296
#   to save disk space
287
 
297
 
288
if [ ! $DVD ] && [ ! $MINI ]; then
298
if [ ! $DVD ] && [ ! $MINI ]; then
289
 
299
 
290
    mkdir -p /mini
-
 
291
 
-
 
292
    echo "Move some folders to /mini, to save disk space:"
300
    echo "Move some folders to /mini, to save disk space:"
-
 
301
    mkdir -p /mini
293
 
302
 
294
    # move some dirs in /usr/share/doc to /mini
303
    # move some dirs in /usr/share/doc to /mini
295
    mkdir -p /mini/usr/share/doc
304
    mkdir -p /mini/usr/share/doc
296
    mv -v /usr/share/doc/openafs-*        /mini/usr/share/doc 2>/dev/null
305
    mv -v /usr/share/doc/openafs-*        /mini/usr/share/doc 2>/dev/null
297
    mv -v /usr/share/doc/gcc-*            /mini/usr/share/doc 2>/dev/null
306
    mv -v /usr/share/doc/gcc-*            /mini/usr/share/doc 2>/dev/null
Line 506... Line 515...
506
### System icon on desktop
515
### System icon on desktop
507
if [ -d /usr/share/apps/kdesktop/DesktopLinks ]; then
516
if [ -d /usr/share/apps/kdesktop/DesktopLinks ]; then
508
    cp -a customize/System.desktop /usr/share/apps/kdesktop/DesktopLinks/
517
    cp -a customize/System.desktop /usr/share/apps/kdesktop/DesktopLinks/
509
fi
518
fi
510
 
519
 
-
 
520
### configure ICEWM
-
 
521
cp -a customize/icewm/winoptions /usr/share/icewm/
-
 
522
cp -a customize/icewm/toolbar /usr/share/icewm/
-
 
523
cp -a customize/icewm/menu /usr/share/icewm/
-
 
524
 
511
### files for PSI User, will be copied during bootup to /home/$LOCALUSER/
525
### set SL theme as default theme for ICEWM
-
 
526
rpm -q icewm-SL-theme >/dev/null 2>&1
512
if [ $PSI ]; then
527
if [ "$?" = "0" ]; then
513
    rm -rf /usr/share/$LOCALUSER
-
 
514
    cp -a customize/$LOCALUSER /usr/share/
528
    echo "Theme=SL/default.theme" > /usr/share/icewm/theme
515
fi
529
fi
516
 
530
 
517
### psi-menu, psi-scanvirus
531
### icons for icewm
518
if [ $PSI ]; then
-
 
519
    cp -a customize/psi/psi-menu /usr/bin/
-
 
520
    cp -a customize/psi/psi-scanvirus /usr/bin/
-
 
521
    [ -d /usr/local/uvscan ] && cp -a customize/psi/update-dat /usr/local/uvscan/
532
cp -a /usr/share/pixmaps/qtparted.xpm /usr/share/icewm/icons/ 2>/dev/null
522
    [ -x /usr/bin/freshclam ] && cp -a customize/psi/psi-freshclam /usr/bin/
533
cp -a /usr/share/gftp/gftp.xpm /usr/share/icewm/icons/ 2>/dev/null
523
fi
-
 
524
 
534
 
525
### script to install LiveCD on local harddisk
535
### script to install LiveCD on local harddisk
526
cp -a customize/livecd-install  /usr/bin/
536
cp -a customize/livecd-install  /usr/bin/
527
 
537
 
528
### GUI for livecd-install
538
### GUI for livecd-install
Line 537... Line 547...
537
    cp -a customize/sl${OS_RELEASE}/livecd-mkinitrd /usr/sbin/
547
    cp -a customize/sl${OS_RELEASE}/livecd-mkinitrd /usr/sbin/
538
else
548
else
539
    cp -a /sbin/mkinitrd /usr/sbin/livecd-mkinitrd
549
    cp -a /sbin/mkinitrd /usr/sbin/livecd-mkinitrd
540
fi
550
fi
541
 
551
 
-
 
552
### files for PSI User, will be copied during bootup to /home/$LOCALUSER/
-
 
553
if [ $PSI ]; then
-
 
554
    rm -rf /usr/share/$LOCALUSER
-
 
555
    cp -a customize/$LOCALUSER /usr/share/
-
 
556
fi
-
 
557
 
-
 
558
### psi-menu, psi-scanvirus
-
 
559
if [ $PSI ]; then
-
 
560
    cp -a customize/psi/psi-menu /usr/bin/
-
 
561
    cp -a customize/psi/psi-scanvirus /usr/bin/
-
 
562
    [ -d /usr/local/uvscan ] && cp -a customize/psi/update-dat /usr/local/uvscan/
-
 
563
    [ -x /usr/bin/freshclam ] && cp -a customize/psi/psi-freshclam /usr/bin/
-
 
564
fi
542
 
565
 
543
echo "done."
566
echo "done."
544
echo "--------------------------------------------"
567
echo "--------------------------------------------"
545
 
568
 
546
 
569