summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore16
-rw-r--r--README113
-rw-r--r--build_tools/bin/chrootrc.sh12
-rw-r--r--build_tools/bin/km-down.prf7
-rw-r--r--build_tools/bin/km-up.prf6
-rwxr-xr-xbuild_tools/bin/kmsync.sh96
-rwxr-xr-xbuild_tools/bin/mp67
l---------build_tools/bin/mpr1
-rwxr-xr-xbuild_tools/bin/update_db_repo.sh21
-rw-r--r--build_tools/bin/world.sh43
-rwxr-xr-xbuild_tools/clarch/bootusb/bootinst.sh61
-rwxr-xr-xbuild_tools/clarch/bootusb/lilobin0 -> 70196 bytes
l---------build_tools/clarch/cachepacs1
l---------build_tools/clarch/inpacs1
-rwxr-xr-xbuild_tools/clarch/larch-setup125
-rw-r--r--build_tools/clarch/larch/buildlive537
-rw-r--r--build_tools/clarch/larch/cd-root/boot/grub/colors.lst36
-rw-r--r--build_tools/clarch/larch/cd-root/boot/grub/help.lst16
-rw-r--r--build_tools/clarch/larch/cd-root/boot/grub/keyboards.lst111
-rw-r--r--build_tools/clarch/larch/cd-root/boot/grub/menu.lst27
-rw-r--r--build_tools/clarch/larch/cd-root/boot/grub/more.lst30
-rw-r--r--build_tools/clarch/larch/cd-root/boot/grub/settings.lst13
-rw-r--r--build_tools/clarch/larch/cd-root/boot/grub/tools.lst23
-rw-r--r--build_tools/clarch/larch/cd-root/boot/help/bootexisting.txt24
-rw-r--r--build_tools/clarch/larch/cd-root/boot/help/contrib.txt23
-rw-r--r--build_tools/clarch/larch/cd-root/boot/splash.xpm.gzbin0 -> 8371 bytes
-rw-r--r--build_tools/clarch/larch/cd-root/isolinux/bkgd.jpgbin0 -> 96992 bytes
-rw-r--r--build_tools/clarch/larch/cd-root/isolinux/isolinux.cfg29
-rw-r--r--build_tools/clarch/larch/cd-root/isolinux/memtestbin0 -> 111864 bytes
-rw-r--r--build_tools/clarch/larch/cd-root/isolinux/vesamenu.c32bin0 -> 123756 bytes
-rw-r--r--build_tools/clarch/larch/cd-root/larch/larchboot2
-rw-r--r--build_tools/clarch/larch/cd-root/larch/save1
-rw-r--r--build_tools/clarch/larch/docs/CHANGES109
-rw-r--r--build_tools/clarch/larch/docs/COPYING339
-rw-r--r--build_tools/clarch/larch/docs/LICENCE16
-rw-r--r--build_tools/clarch/larch/docs/README37
-rw-r--r--build_tools/clarch/larch/docs/ReleaseNotes37
-rw-r--r--build_tools/clarch/larch/docs/Splash_howto35
-rw-r--r--build_tools/clarch/larch/docs/html/index.html128
-rw-r--r--build_tools/clarch/larch/docs/html/larch1.jpgbin0 -> 8716 bytes
-rw-r--r--build_tools/clarch/larch/docs/html/larch_docindex.html126
-rw-r--r--build_tools/clarch/larch/docs/html/larch_features.html137
-rw-r--r--build_tools/clarch/larch/docs/html/larch_fstab.html87
-rw-r--r--build_tools/clarch/larch/docs/html/larch_intro.html128
-rw-r--r--build_tools/clarch/larch/docs/html/larch_live_system.html155
-rw-r--r--build_tools/clarch/larch/docs/html/larch_overview.html383
-rw-r--r--build_tools/clarch/larch/docs/html/larch_profiles.html167
-rw-r--r--build_tools/clarch/larch/docs/html/larch_quick.html108
-rw-r--r--build_tools/clarch/larch/docs/html/larch_running.html169
-rw-r--r--build_tools/clarch/larch/docs/html/larch_sessionsave.html162
-rw-r--r--build_tools/clarch/larch/docs/html/larch_ssh.html205
-rw-r--r--build_tools/clarch/larch/profile0/cd-root/README8
-rw-r--r--build_tools/clarch/larch/profile0/cd-root/isolinux/isolinux.cfg29
-rw-r--r--build_tools/clarch/larch/profile0/kernel2
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/addedpacks170
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cache_packs1
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cd-root/isolinux/isolinux.cfg49
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cd-root/isolinux/vbg.jpgbin0 -> 32422 bytes
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cd-root/larch/copy/actions.rc3
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cd-root/larch/copy/autologin1
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cd-root/larch/copy/bash_profile1
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cd-root/larch/copy/larch063
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/create_overlay.sh1
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/locale.gen5
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/overlay/home/mythtv/.fluxbox/apps2
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/overlay/home/mythtv/.xinitrc19
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/pacman.conf61
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post-process.sh17
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.bash_profile1
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.bashrc3
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/apps2
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/init35
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/menu81
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/menuconfig65
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/wallpaper.pngbin0 -> 119287 bytes
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.xinitrc18
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.xsession10
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/hosts.allow7
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/hosts.deny6
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/menu.lst60
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/rc.conf113
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/rc.shutdown104
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/tweak.sh32
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/pre-process.sh8
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rcconfx19
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/X11/xinit/startx.custom22
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/X11/xinit/xinitrc.custom4
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf49
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf.i81059
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf.i810.267
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf.vesa49
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/conf.d/dhcpcd6
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/hosts.allow13
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/inittab43
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/inittab.larchsave43
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/larch-shutdown47
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/ppp/options352
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/rc.local16
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/rc.local.orig7
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/rc.local.shutdown7
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/skel/.bash_profile3
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/skel/.bashrc3
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/skel/.xinitrc17
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/skel/.xsession10
-rw-r--r--build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/slim.conf79
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/addedpacks170
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/cache_packs1
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/cd-root/isolinux/isolinux.cfg49
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/cd-root/isolinux/vbg.jpgbin0 -> 32422 bytes
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/cd-root/larch/copy/actions.rc3
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/cd-root/larch/copy/autologin1
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/cd-root/larch/copy/bash_profile1
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/cd-root/larch/copy/larch063
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-REMOTE/create_overlay.sh1
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/locale.gen5
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/overlay/home/mythtv/.fluxbox/apps2
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-REMOTE/overlay/home/mythtv/.xinitrc19
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-REMOTE/pacman.conf61
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-REMOTE/post-process.sh17
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.bash_profile1
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.bashrc3
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.fluxbox/apps2
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.fluxbox/init35
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.fluxbox/menu81
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.fluxbox/menuconfig65
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.fluxbox/wallpaper.pngbin0 -> 119287 bytes
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.xinitrc18
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.xsession10
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/hosts.allow7
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/hosts.deny6
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/menu.lst60
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/rc.conf113
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/rc.shutdown104
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/tweak.sh32
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-REMOTE/pre-process.sh8
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/rcconfx19
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xinit/startx.custom22
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xinit/xinitrc.custom4
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xorg.conf49
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xorg.conf.i81059
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xorg.conf.i810.267
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xorg.conf.vesa49
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/conf.d/dhcpcd6
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/hosts.allow13
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/inittab43
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/inittab.larchsave43
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/larch-shutdown47
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/ppp/options352
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/rc.local16
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/rc.local.orig7
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/rc.local.shutdown7
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/skel/.bash_profile3
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/skel/.bashrc3
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/skel/.xinitrc17
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/skel/.xsession10
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/slim.conf79
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/addedpacks170
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/cache_packs1
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/cd-root/isolinux/isolinux.cfg49
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/cd-root/isolinux/vbg.jpgbin0 -> 13448 bytes
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/cd-root/larch/copy/actions.rc3
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/cd-root/larch/copy/autologin1
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/cd-root/larch/copy/bash_profile1
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/cd-root/larch/copy/larch063
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-local/create_overlay.sh1
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/locale.gen5
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/overlay/home/mythtv/.fluxbox/apps2
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-local/overlay/home/mythtv/.xinitrc19
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-local/pacman.conf59
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-local/post-process.sh17
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.bash_profile1
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.bashrc3
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.fluxbox/apps2
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.fluxbox/init35
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.fluxbox/menu81
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.fluxbox/menuconfig65
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.fluxbox/wallpaper.pngbin0 -> 119287 bytes
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.xinitrc18
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.xsession10
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/post_process/hosts.allow7
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-local/post_process/hosts.deny6
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-local/post_process/menu.lst60
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-local/post_process/rc.conf113
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-local/post_process/rc.shutdown104
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-local/post_process/tweak.sh32
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-local/pre-process.sh8
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/rcconfx19
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/X11/xinit/startx.custom22
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/X11/xinit/xinitrc.custom4
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/X11/xorg.conf49
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/X11/xorg.conf.i81059
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/X11/xorg.conf.i810.267
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/X11/xorg.conf.vesa49
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/conf.d/dhcpcd6
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/hosts.allow13
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/inittab43
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/inittab.larchsave43
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/larch-shutdown47
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/ppp/options352
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/rc.local16
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/rc.local.orig7
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/rc.local.shutdown7
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/skel/.bash_profile3
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/skel/.bashrc3
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/skel/.xinitrc17
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/skel/.xsession10
-rw-r--r--build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/slim.conf79
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/addedpacks170
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cache_packs1
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cd-root/isolinux/isolinux.cfg49
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cd-root/isolinux/vbg.jpgbin0 -> 32422 bytes
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cd-root/larch/copy/actions.rc3
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cd-root/larch/copy/autologin1
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cd-root/larch/copy/bash_profile1
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cd-root/larch/copy/larch063
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/create_overlay.sh1
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/locale.gen5
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/overlay/home/mythtv/.fluxbox/apps2
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/overlay/home/mythtv/.xinitrc19
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/pacman.conf61
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post-process.sh17
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.bash_profile1
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.bashrc3
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/apps2
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/init35
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/menu81
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/menuconfig65
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/wallpaper.pngbin0 -> 119287 bytes
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.xinitrc18
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.xsession10
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/hosts.allow7
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/hosts.deny6
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/menu.lst60
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/rc.conf113
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/rc.shutdown104
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/tweak.sh32
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/pre-process.sh8
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rcconfx19
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/X11/xinit/startx.custom22
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/X11/xinit/xinitrc.custom4
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf49
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf.i81059
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf.i810.267
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf.vesa49
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/conf.d/dhcpcd6
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/hosts.allow13
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/inittab43
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/inittab.larchsave43
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/larch-shutdown47
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/ppp/options352
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/rc.local16
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/rc.local.orig7
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/rc.local.shutdown7
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/skel/.bash_profile3
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/skel/.bashrc3
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/skel/.xinitrc17
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/skel/.xsession10
-rw-r--r--build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/slim.conf79
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/addedpacks170
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/cache_packs1
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/cd-root/isolinux/isolinux.cfg49
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/cd-root/isolinux/vbg.jpgbin0 -> 32422 bytes
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/cd-root/larch/copy/actions.rc3
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/cd-root/larch/copy/autologin1
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/cd-root/larch/copy/bash_profile1
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/cd-root/larch/copy/larch063
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-REMOTE/create_overlay.sh1
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/locale.gen5
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/overlay/home/mythtv/.fluxbox/apps2
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-REMOTE/overlay/home/mythtv/.xinitrc19
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-REMOTE/pacman.conf61
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-REMOTE/post-process.sh17
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.bash_profile1
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.bashrc3
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.fluxbox/apps2
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.fluxbox/init35
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.fluxbox/menu81
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.fluxbox/menuconfig65
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.fluxbox/wallpaper.pngbin0 -> 119287 bytes
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.xinitrc18
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.xsession10
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/hosts.allow7
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/hosts.deny6
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/menu.lst60
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/rc.conf113
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/rc.shutdown104
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/tweak.sh32
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-REMOTE/pre-process.sh8
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/rcconfx19
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/X11/xinit/startx.custom22
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/X11/xinit/xinitrc.custom4
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/X11/xorg.conf49
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/X11/xorg.conf.i81059
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/X11/xorg.conf.i810.267
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/X11/xorg.conf.vesa49
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/conf.d/dhcpcd6
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/hosts.allow13
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/inittab43
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/inittab.larchsave43
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/larch-shutdown47
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/ppp/options352
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/rc.local16
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/rc.local.orig7
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/rc.local.shutdown7
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/skel/.bash_profile3
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/skel/.bashrc3
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/skel/.xinitrc17
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/skel/.xsession10
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/slim.conf79
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/addedpacks170
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/cache_packs1
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/cd-root/isolinux/isolinux.cfg49
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/cd-root/isolinux/vbg.jpgbin0 -> 13448 bytes
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/cd-root/larch/copy/actions.rc3
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/cd-root/larch/copy/autologin1
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/cd-root/larch/copy/bash_profile1
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/cd-root/larch/copy/larch063
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local-httpd/create_overlay.sh1
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/locale.gen5
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/overlay/home/mythtv/.fluxbox/apps2
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local-httpd/overlay/home/mythtv/.xinitrc19
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local-httpd/pacman.conf64
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local-httpd/post-process.sh17
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.bash_profile1
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.bashrc3
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.fluxbox/apps2
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.fluxbox/init35
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.fluxbox/menu81
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.fluxbox/menuconfig65
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.fluxbox/wallpaper.pngbin0 -> 119287 bytes
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.xinitrc18
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.xsession10
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/hosts.allow7
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/hosts.deny6
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/menu.lst60
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/rc.conf113
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/rc.shutdown104
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/tweak.sh32
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local-httpd/pre-process.sh8
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/rcconfx19
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/X11/xinit/startx.custom22
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/X11/xinit/xinitrc.custom4
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/X11/xorg.conf49
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/X11/xorg.conf.i81059
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/X11/xorg.conf.i810.267
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/X11/xorg.conf.vesa49
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/conf.d/dhcpcd6
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/hosts.allow13
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/inittab43
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/inittab.larchsave43
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/larch-shutdown47
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/ppp/options352
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/rc.local16
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/rc.local.orig7
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/rc.local.shutdown7
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/skel/.bash_profile3
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/skel/.bashrc3
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/skel/.xinitrc17
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/skel/.xsession10
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/slim.conf79
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/addedpacks170
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/cache_packs1
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/cd-root/isolinux/isolinux.cfg49
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/cd-root/isolinux/vbg.jpgbin0 -> 13448 bytes
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/cd-root/larch/copy/actions.rc3
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/cd-root/larch/copy/autologin1
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/cd-root/larch/copy/bash_profile1
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/cd-root/larch/copy/larch063
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local/create_overlay.sh1
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/locale.gen5
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/overlay/home/mythtv/.fluxbox/apps2
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local/overlay/home/mythtv/.xinitrc19
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local/pacman.conf59
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local/post-process.sh17
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.bash_profile1
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.bashrc3
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.fluxbox/apps2
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.fluxbox/init35
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.fluxbox/menu81
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.fluxbox/menuconfig65
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.fluxbox/wallpaper.pngbin0 -> 119287 bytes
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.xinitrc18
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.xsession10
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/post_process/hosts.allow7
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local/post_process/hosts.deny6
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local/post_process/menu.lst60
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local/post_process/rc.conf113
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local/post_process/rc.shutdown104
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local/post_process/tweak.sh32
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local/pre-process.sh8
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/rcconfx19
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/X11/xinit/startx.custom22
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/X11/xinit/xinitrc.custom4
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/X11/xorg.conf49
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/X11/xorg.conf.i81059
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/X11/xorg.conf.i810.267
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/X11/xorg.conf.vesa49
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/conf.d/dhcpcd6
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/hosts.allow13
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/inittab43
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/inittab.larchsave43
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/larch-shutdown47
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/ppp/options352
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/rc.local16
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/rc.local.orig7
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/rc.local.shutdown7
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/skel/.bash_profile3
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/skel/.bashrc3
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/skel/.xinitrc17
-rwxr-xr-xbuild_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/skel/.xsession10
-rw-r--r--build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/slim.conf79
-rwxr-xr-xbuild_tools/clarch/larch/run/cachepacs139
-rwxr-xr-xbuild_tools/clarch/larch/run/gen_repo206
-rwxr-xr-xbuild_tools/clarch/larch/run/getPackageServer275
-rwxr-xr-xbuild_tools/clarch/larch/run/inpacs302
-rw-r--r--build_tools/clarch/larch/run/jams.cachepacks.larch.patch352
-rw-r--r--build_tools/clarch/larch/run/jams.larch.patch110
-rwxr-xr-xbuild_tools/clarch/larch/run/larchify140
-rwxr-xr-xbuild_tools/clarch/larch/run/mklarch281
-rw-r--r--build_tools/clarch/larch/run/myusbboot89
-rwxr-xr-xbuild_tools/clarch/larch/run/ssh_init18
-rwxr-xr-xbuild_tools/clarch/larch/run/usb2bootiso66
-rwxr-xr-xbuild_tools/clarch/larch/run/usb2iso78
-rwxr-xr-xbuild_tools/clarch/larch/run/usbboot100
-rwxr-xr-xbuild_tools/clarch/larch/run/usbboot.orig155
-rwxr-xr-xbuild_tools/clarch/larch/run/usbboot_grub180
-rwxr-xr-xbuild_tools/clarch/larch/run/xpack122
l---------build_tools/clarch/larchify1
l---------build_tools/clarch/larchroot1
l---------build_tools/clarch/mklarch1
-rwxr-xr-xbuild_tools/clarch/remove_links.sh5
-rwxr-xr-xbuild_tools/clarch/setup_links.sh8
-rwxr-xr-xbuild_tools/clarch/sync_profile.sh5
l---------build_tools/clarch/usb2bootiso1
-rwxr-xr-xbuild_tools/go.sh25
-rw-r--r--build_tools/makefile44
-rwxr-xr-xmkarchroot184
-rwxr-xr-xsetup_env.sh89
-rw-r--r--templates/developers/jams/.gtkrc-2.01
-rwxr-xr-xtemplates/developers/jams/display.sh3
-rwxr-xr-xtemplates/developers/jams/loginrun.sh4
-rwxr-xr-xtemplates/developers/rdt/loginrun.sh39
-rw-r--r--templates/enter_dev_chroot.sh178
-rwxr-xr-xtemplates/etc/.bash_profile6
-rwxr-xr-xtemplates/etc/.bashrc3
-rw-r--r--templates/etc/bashrc4
-rw-r--r--templates/etc/kmdev.sh5
-rw-r--r--templates/makepkg.conf106
-rw-r--r--templates/pacman.conf.chroot74
449 files changed, 20379 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..1904290
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,16 @@
+# git-ls-files --others --exclude-from=.git/info/exclude
+# Lines that start with '#' are comments.
+# For a project mostly in C, the following would be a good set of
+# exclude patterns (uncomment them if you want to use them):
+*.[oa]
+*~
+*.*~
+src
+pkg
+*.old
+*.bak
+build_tools/clarch/pacman.conf
+overlay.xpk
+*.swp
+.directory
+.viminfo
diff --git a/README b/README
new file mode 100644
index 0000000..9493bd5
--- /dev/null
+++ b/README
@@ -0,0 +1,113 @@
+ The LinHES development is divided into two different git repositories.
+The first repository is LinHES-PKGBUILD, and it contains all the PKGBUILD files that make up LinHES. The second repository is called LinHES-dev and is intended to create a chroot for all development to occur within. By using a chroot development work can be done on non-LinHES machines. The reason for the split is so that the PKGBUILD's may be downloaded and modified by non-developers without requiring them to download the entire development environment.
+
+------ LinHES-PKGBUILD -----------
+
+The layout of the LinHES-PKGBUILD repository is as follows.
+-- abs
+ |-- chroot-devel
+ |-- chroot-devel-testing
+ |-- core
+ |-- core-testing
+ |-- extra
+ |-- extra-testing
+
+Core is the set of packages that make up the “core” of LinHES, or in other words all the packages needed to create a fully functioning system.
+
+Extra contains all the packages used by LinHES, but not necessarily needed to create a fully functioning system. For example this would include mplayer, xine and mozilla.
+
+Chroot-devel are packages used by developers that are not in LinHES.
+
+The difference between core and core-testing is that core is intended to be used for public iso releases, where as core-testing is intended for developers or beta testing. The same applies to extra and chroot-devel.
+
+----------- LinHES-dev -------------------
+
+ LinHES-dev contains the tools and scripts for a working development environment, but it is not a working development by itself. The script setup-env.sh will do all the work in creating a working development environment. The script will download and install the required packages(from the current stable release) into a directory called build_root and create a script that can be used to enter the chroot.
+ Because LinHES will support multiple architectures, setup-env.sh requires and argument telling it which architecture to work with.. Currently i686 is the only working option, so that is the one I recommend you use. For example running “setup-env.sh i686” will create a working i686 LinHES development environment named build_root.i686. Setup-env.sh also creates a empty directory structure called pkg_repo, this is used by kmsync.sh (which will be discussed later).
+
+ To enter the build root run (as root) the newly created script called enter_build_root.i686.
+The script will take care of the following things for you
+ a) mounting proc,sys,dev/pts
+ b) bind mounting LinHES-dev/build_tools to build_root/build_tools
+ c) bind mounting LinHES-PKGBUILD to build_root/data/LinHES-PKGBUILD
+ d) bind mounting pkg_repo to build_root/data/pkg_repo.
+ e) unmount the above directories when leaving the chroot
+
+
+The following is a list of tools available to you inside the chroot.
+
+a) mp
+ Small script to compile a package, copy it to the local testing repo and update the local database using the repo-add function. Must be called from the same directory that contains the PKGBUILD. This script takes all the same arguments that makepkg takes.
+
+b) mpr
+ Symlink to mp that does the same thing as mp except it copies the package to the release repo
+
+c) update_db_repo
+Used to completely regenerate the the local package database.
+Takes two arguments the directory with packages, and the name of the repository.
+ Example: update_db_repo /data/local/pkg_repo/i686/core-testing core-testing
+
+d) kmsync.sh (testing|release|chroot-devel
+ This script is used to synchronize the contents of the compiled packages on knoppmyth.net and the ones on your local machine.
+
+ The script takes 1 argument telling it which repository to sync up with
+
+ The first time it's run with any given option the local directory (/data/pkg_repo/i686/core|extra|chroot-devel) MUST MUST MUST be empty.
+
+ Please use this script with care, any changes that are made in the local mirror will be copied to the knoppmyth server.
+
+ This includes the possibility to completely erase all the packages. Finally this script uses a shared user account on knoppmyth.net that is a locked account. SSH keys must be setup for this script to work.
+
+e) build_tools/go.sh
+ Menu driven fronted to create an ISO with selected profile
+ The following profiles are available to create an iso.
+a ) i686-RELEASE-REMOTE
+ Create an iso from the release repo using packages from knoppmyth.net
+b ) i686-testing-REMOTE
+ Create an ISO from the testing repo using packages from knoppmyth.net
+c) i686-testing-local
+ Create an ISO from the testing repo using packages from the local mirror
+d ) i686-testing-local-httpdir-structure
+ Create an ISO from the testing repo using packages from a local web server name “localmirror”
+
+ After the process finishes it will let you know the final name and location of the resulting ISO
+ For any of the local profiles to work, it requires that kmsync be run at least once to populate the local mirror.
+
+Quick start showing typical process
+############
+Create the chroot for i686
+
+
+git clone ssh://jams@knoppmyth.net/mount/repository/LinHES-dev
+git clone ssh://jams@knoppmyth.net/mount/repository/LinHES-PKGBUILD
+ cd LinHES-dev/
+./setup_env.sh i686
+ cd ..
+ ./enter_dev_chroot.i686.sh
+
+Build and iso from knoppmyth.net
+cdb <= alias
+./go.sh
+ (select i686-testing-REMOTE)
+
+commands used to build a package (tar in this example), and update knoppmyth.net
+
+cdl <= alias that takes you the the top level PKGBUILD directory
+cd core-testing
+cd tar
+vi PKGBUILD <= bump the pkgrel line by 1
+mp
+(at this point you should test the package, either by building a new iso or installing the package)kmsync.sh testing <= this will pull down all changes from knoppmyth.net and upload the new tar package
+
+-----------------------
+Misc.
+Directory structure after a functioning chroot is created for i686
+|-- LinHES-PKGBUILD
+|-- LinHES-dev
+|-- build_root.i686
+|-- enter_dev_chroot.i686.sh
+`-- pkg_repo
+
+
+
+
diff --git a/build_tools/bin/chrootrc.sh b/build_tools/bin/chrootrc.sh
new file mode 100644
index 0000000..291cc52
--- /dev/null
+++ b/build_tools/bin/chrootrc.sh
@@ -0,0 +1,12 @@
+mount /dev/pts
+export BHOME=/build_tools
+export HOME=/root
+. /etc/profile
+. /etc/bashrc
+export PATH=$PATH:$BHOME/bin:$BHOME/bld/bin
+export PS1='[\u@kmbuild \W]\$'
+cd $BHOME
+if [ -f /root/loginrun.sh ]
+then
+ /root/loginrun.sh
+fi
diff --git a/build_tools/bin/km-down.prf b/build_tools/bin/km-down.prf
new file mode 100644
index 0000000..98dfe25
--- /dev/null
+++ b/build_tools/bin/km-down.prf
@@ -0,0 +1,7 @@
+ ignore = Name temp.*
+ ignore = Name *~
+ ignore = Name .*~
+ ignore = Name *.o
+ ignore = Name *.tmp
+ ignore = Name *.db.tar.gz.old
+ ignore = Name *.db.tar.gz
diff --git a/build_tools/bin/km-up.prf b/build_tools/bin/km-up.prf
new file mode 100644
index 0000000..9fa6ce4
--- /dev/null
+++ b/build_tools/bin/km-up.prf
@@ -0,0 +1,6 @@
+ ignore = Name temp.*
+ ignore = Name *~
+ ignore = Name .*~
+ ignore = Name *.o
+ ignore = Name *.tmp
+ ignore = Name *.db.tar.gz.old
diff --git a/build_tools/bin/kmsync.sh b/build_tools/bin/kmsync.sh
new file mode 100755
index 0000000..6506b56
--- /dev/null
+++ b/build_tools/bin/kmsync.sh
@@ -0,0 +1,96 @@
+#!/bin/bash
+#This script will create and synchronize a local package mirror with the repository (as defined below) on knoppmyth.net, it will also update the database.
+#This script uses a shared account on knoppmyth.net. DO NOT change the account name
+# and dont' ask for the password, instead setup ssh keys.
+#
+
+
+if [ -e /etc/makepkg.conf ]
+then
+ . /etc/makepkg.conf
+else
+ echo "couldn't find /etc/makepkg.conf"
+fi
+cwd=`dirname $0`
+REMOTE_DIR=/mount/repository/repo
+DOCROOT=/data/pkg_repo/$CARCH
+
+#export UNISON="/root/.unison"
+export UNISON="/data/pkg_repo/.unison"
+
+function sync_dirs {
+ REMOTE=$1
+ LOCAL=$2
+
+ echo " Updating $3 "
+ echo "________________________________________________________"
+
+ #first bring down new changes from knoppmyth.net
+ unison km-down -terse -logfile /tmp/unison-down.log -auto -batch -numericids ssh://reposync@knoppmyth.net/$REMOTE $LOCAL
+ if [ ! $? = 0 ]
+ then
+ echo "#######################################################"
+ echo "## ERRORS OCCURED ##"
+ echo "#######################################################"
+ exit 1
+
+ fi
+ #update the local database
+ update_db_repo.sh $LOCAL $3
+
+ #push the database back
+ unison km-up -logfile /tmp/unison-up.log -auto -batch -numericids ssh://reposync@knoppmyth.net/$REMOTE $LOCAL
+ echo "-------------------------------------------------------"
+ echo "----------- Finished with $3 -----------"
+ echo "-------------------------------------------------------"
+
+
+
+
+}
+#---------------------------------------------------------------
+if [ ! -d $UNISON ]
+then
+ mkdir $UNISON
+fi
+
+if [ ! -f $UNISON/km-down.prf ]
+then
+ cp -f $cwd/km-down.prf $UNISON/
+fi
+
+if [ ! -f $UNISON/km-up.prf ]
+then
+ cp -f $cwd/km-up.prf $UNISON/
+fi
+
+
+
+clear
+case $1 in
+ testing)
+ #sync_dirs $REMOTE $LOCAL
+ sync_dirs $REMOTE_DIR/$CARCH/core-testing $DOCROOT/core-testing core-testing
+ sync_dirs $REMOTE_DIR/$CARCH/extra-testing $DOCROOT/extra-testing extra-testing
+ ;;
+
+ release)
+ sync_dirs $REMOTE_DIR/$CARCH/core $DOCROOT/core core
+ sync_dirs $REMOTE_DIR/$CARCH/extra $DOCROOT/extra extra
+ ;;
+
+ chroot-devel)
+ echo "will update chroot-devel"
+ sync_dirs $REMOTE_DIR/$CARCH/chroot-devel $DOCROOT/chroot-devel chroot-devel
+ ;;
+ *)
+ echo "invalid options"
+ echo "kmsync.sh (testing|release|chroot-devel) "
+ echo
+ echo "EX: kmsync.sh testing <= will sync the testing repo with km.net update the local database and resync with km.net"
+ #echo "kmsync.sh testing oneway <= will syncthe testing repo with km.net update the local database"
+
+ ;;
+esac
+echo "Finished."
+# End
diff --git a/build_tools/bin/mp b/build_tools/bin/mp
new file mode 100755
index 0000000..c69c622
--- /dev/null
+++ b/build_tools/bin/mp
@@ -0,0 +1,67 @@
+#!/bin/bash
+# Used to compile a package and copy it to the correct repository location.
+# all arguments are passed to makepkg
+#
+#
+. /etc/makepkg.conf
+. PKGBUILD
+PKGHOME=/data/pkg_repo/packages
+mydir=`pwd`
+TOTALPKG="$pkgname"-"$pkgver"-"$pkgrel"-"$CARCH".pkg.tar.gz
+
+
+if [ x`basename $0` = xmpr ]
+then
+ PFIX=""
+else
+ PFIX="-testing"
+fi
+
+
+
+
+function find_repo {
+ echo $mydir|grep -q "extra"
+ if [ $? = 0 ]
+ then
+ REPO=extra${PFIX}
+ else
+ REPO=core${PFIX}
+ fi
+ DOCROOT=/data/pkg_repo/$CARCH/$REPO
+}
+
+
+function update-repo {
+
+
+ cd $DOCROOT
+ echo
+ echo "DOCROOT=$DOCROOT"
+ echo
+ #remove old package from local copy
+ DELPKG="$pkgname"-"$pkgver"-*-"$CARCH".pkg.tar.gz
+ #echo $DOCROOT
+ #echo $DELPKG
+ echo "Removing old packages from:"
+ rm -fvI $DELPKG
+ #copy in new package
+ echo
+ echo "Updating $CARCH/$REPO with $TOTALPKG"
+ cp -f $PKGDEST/$TOTALPKG .
+ repo-add $DOCROOT/$REPO.db.tar.gz $DOCROOT/$TOTALPKG
+ cd -
+
+}
+
+
+
+
+
+
+find_repo
+
+makepkg --holdver --asroot $@ || exit 1
+echo "---------updating database ----------"
+update-repo #&& pacman -Sy
+
diff --git a/build_tools/bin/mpr b/build_tools/bin/mpr
new file mode 120000
index 0000000..691afc3
--- /dev/null
+++ b/build_tools/bin/mpr
@@ -0,0 +1 @@
+mp \ No newline at end of file
diff --git a/build_tools/bin/update_db_repo.sh b/build_tools/bin/update_db_repo.sh
new file mode 100755
index 0000000..27a594b
--- /dev/null
+++ b/build_tools/bin/update_db_repo.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+# tiny util to regenreate the databse on the LOCAL machine
+# called with
+
+if [ $# -ne 2 ]
+then
+ echo "incorrect number of args"
+ echo "update_db_repo directory repo"
+ echo "EX: update_db_repo /data/local/pkg_repo/i686/core-testing core-testing"
+ exit 1
+fi
+
+
+cd $1
+REPO=$2
+echo " --------------------------"
+echo "updating database for $REPO"
+echo " --------------------------"
+pwd
+ repo-add -q $REPO.db.tar.gz *.pkg.tar.gz
+cd -
diff --git a/build_tools/bin/world.sh b/build_tools/bin/world.sh
new file mode 100644
index 0000000..c8c6169
--- /dev/null
+++ b/build_tools/bin/world.sh
@@ -0,0 +1,43 @@
+#!/bin/bash
+a="dont_do_anything_"
+if [ x = x$a ]
+then
+#increment all pkgrel
+for i in `find -name PKGBUILD`;do
+
+ #getting pkgrel number after =
+ package_pkgrel=`cat $i | grep pkgrel= | cut -d'=' -f 2`
+
+ #extract number before dot in pkgrel
+ beforedot=`echo $package_pkgrel | cut -n -d'.' -f 1`
+
+ #add 1 to pkgrel
+ new_pkgrel=$[$beforedot+1]
+
+ #write it back to PKGBUILD
+ sed -i "s:pkgrel=${package_pkgrel}:pkgrel=${new_pkgrel}:g" $i
+done
+fi
+find ./ -name "src" -exec rm -rf {} \;
+
+
+#packages to remove
+if [ x = x$a ]
+then
+ pacman -R --nodeps klibc
+ pacman -R --nodeps klibc-extras
+ pacman -R --nodeps klibc-kbd
+ pacman -R --nodeps klibc-module-init-tools
+ pacman -R --nodeps klibc-udev
+ pacman -R --nodeps heimdal
+fi
+
+
+#build base
+cd /build/r6-src-jm
+#makeworld -f --asroot -s -r -i --noconfirm -c -f /home/packages local
+makeworld -f --asroot -s -r --noconfirm -c -f /home/packages local
+cd -
+cd /home/packages
+repo-add r6-testing.db.tar.gz *
+cd -
diff --git a/build_tools/clarch/bootusb/bootinst.sh b/build_tools/clarch/bootusb/bootinst.sh
new file mode 100755
index 0000000..258413c
--- /dev/null
+++ b/build_tools/clarch/bootusb/bootinst.sh
@@ -0,0 +1,61 @@
+#!/bin/bash
+set -e
+TARGET=""
+MBR=""
+DISTRO=MythVantage
+MP=`pwd`
+# Find out which partition or disk are we using
+MYMNT=$(cd -P $(dirname $0) ; pwd)
+while [ "$MYMNT" != "" -a "$MYMNT" != "." -a "$MYMNT" != "/" ]; do
+ TARGET=$(egrep "[^[:space:]]+[[:space:]]+$MYMNT[[:space:]]+" /proc/mounts | cut -d " " -f 1)
+ if [ "$TARGET" != "" ]; then break; fi
+ MYMNT=$(dirname "$MYMNT")
+done
+
+if [ "$TARGET" = "" ]; then
+ echo "Can't find device to install to."
+ echo "Make sure you run this script from a mounted device."
+ exit 1
+fi
+
+MBR=$(echo "$TARGET" | sed -r "s/[0-9]+\$//g")
+NUM=${TARGET:${#MBR}}
+cd "$MYMNT"
+clear
+echo $MP
+
+echo "This installer will setup disk $TARGET to boot only $DISTRO."
+if [ "$MBR" != "$TARGET" ]; then
+ echo
+ echo "Warning! Master boot record (MBR) of $MBR will be overwritten."
+ echo "If you use $MBR to boot any existing operating system, it will not work"
+ echo "anymore. Only $DISTRO will boot from this device. Be careful!"
+fi
+echo
+echo "Press any key to continue, or Ctrl+C to abort..."
+read junk
+clear
+echo "Flushing filesystem buffers, this may take a while..."
+sync
+pwd
+
+# setup MBR if the device is not in superfloppy format
+if [ "$MBR" != "$TARGET" ]; then
+ echo "Setting up MBR on $MBR..."
+ syslinux/lilo -S /dev/null -M $MBR ext
+ # this must be here to support -A for extended partitions
+ #echo "Activating partition $TARGET..."
+ syslinux/lilo -S /dev/null -A $MBR $NUM
+ echo "Updating MBR on $MBR..."
+ # this must be here because LILO mbr is bad. mbr.bin is from syslinux
+ cat syslinux/mbr.bin > $MBR
+fi
+
+echo "Setting up boot record for $TARGET..."
+ syslinux/syslinux $TARGET
+
+echo "Disk $TARGET should be bootable now. Installation finished."
+
+echo
+echo "Read the information above and then press any key to exit..."
+read junk
diff --git a/build_tools/clarch/bootusb/lilo b/build_tools/clarch/bootusb/lilo
new file mode 100755
index 0000000..afb2f37
--- /dev/null
+++ b/build_tools/clarch/bootusb/lilo
Binary files differ
diff --git a/build_tools/clarch/cachepacs b/build_tools/clarch/cachepacs
new file mode 120000
index 0000000..4777910
--- /dev/null
+++ b/build_tools/clarch/cachepacs
@@ -0,0 +1 @@
+larch/run/cachepacs \ No newline at end of file
diff --git a/build_tools/clarch/inpacs b/build_tools/clarch/inpacs
new file mode 120000
index 0000000..9e950b1
--- /dev/null
+++ b/build_tools/clarch/inpacs
@@ -0,0 +1 @@
+larch/run/inpacs \ No newline at end of file
diff --git a/build_tools/clarch/larch-setup b/build_tools/clarch/larch-setup
new file mode 100755
index 0000000..23e39f5
--- /dev/null
+++ b/build_tools/clarch/larch-setup
@@ -0,0 +1,125 @@
+#! /bin/bash
+#
+# larch-setup
+#
+# Author: Michael Towers <gradgrind[at]online[dot]de>
+#
+# This file is part of the larch project.
+#
+# larch is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# larch is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with larch; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+#
+#----------------------------------------------------------------------------
+# 2008.08.10
+
+REPO="ftp://ftp.berlios.de/pub/larch/larch5.3/i686"
+#REPO=file://$( readlink -f larchrepo )
+
+if [ "$1" = "-h" ]; then
+ echo "larch-setup -h"
+ echo " # Display this information."
+ echo "larch-setup"
+ echo " # Set up a larch build environment in the current directory."
+ echo " # x86_64 should be detected automatically."
+ echo
+ echo "This script unpacks larch, so that 'mklarch', etc.,"
+ echo "can be run from this directory, without installing."
+ echo "It also generates appropriate symlinks."
+ echo
+ echo "If there is no pacman in the PATH, a package containing the pacman"
+ echo "binary and the libraries it needs can be downloaded from the larch"
+ echo "site and a starter script placed in larch/run."
+ echo "Also repo-add is extracted there and a pacman.conf is generated in"
+ echo "the current directory, presenting a dialog for choosing the package"
+ echo "server."
+ echo "You can use an existing pacman.conf by placing this in the current"
+ echo "directory."
+ echo
+ exit
+fi
+
+sysarch="$( uname -m )"
+if [ "${sysarch}" != "x86_64" ]; then
+ sysarch="i686"
+fi
+
+# Get path to this directory, via the location of this script
+fullpath="$( readlink -f $0 )"
+scriptdir="$( dirname ${fullpath} )"
+
+# Just in case ...
+cd ${scriptdir}
+
+if [ -d larch ]; then
+ echo "ERROR: larch directory exists already"
+ exit 1
+fi
+
+fetch ()
+{
+ if [ -n "$( echo ${REPO} | grep "file://" )" ]; then
+ base="$( echo ${REPO} | sed "s|file://||" )"
+ cp ${base}/$1 .
+ else
+ wget ${REPO}/$1
+ fi
+}
+
+if ! [ -f larch-*.pkg.tar.gz ]; then
+ rm -rf tmp
+ mkdir tmp
+ cd tmp
+ fetch larch5.db.tar.gz
+ tar -xzf larch5.db.tar.gz
+ d=$( ls | grep "^larch-5" )
+ larchpak=$( grep -A 1 -e "%FILENAME%" ${d}/desc | grep -v "%" )
+ cd ${scriptdir}
+ fetch ${larchpak}
+fi
+
+rm -rf tmp
+mkdir tmp
+tar -xzf larch-5*.pkg.tar.gz -C tmp
+mv tmp/opt/larch .
+rm -rf tmp
+
+ln -s ${scriptdir}/larch/run/mklarch mklarch
+ln -s ${scriptdir}/larch/run/larchify larchify
+ln -s ${scriptdir}/larch/run/inpacs inpacs
+ln -s ${scriptdir}/larch/run/usb2bootiso usb2bootiso
+
+# Check that pacman is available.
+if ! which pacman &>/dev/null; then
+ # Fetch the pacman package from the larch site if there isn't a
+ # pacman script in larch/run
+ if ! [ -f larch/run/pacman ]; then
+ fetch pacman-packed.tar.gz
+ if ! [ -f pacman-packed.tar.gz ]; then
+ echo "ERROR: couldn't fetch pacman package"
+ exit 1
+ fi
+ # Extract the needed files from the package
+ tar -xzf pacman-packed.tar.gz
+ cp larch/config/mirrorlist repolist
+ if ! [ -f pacman.conf ]; then
+ cp larch/config/pacman.conf pacman.conf
+ # Select a package server
+ larch/run/getPackageServer -i repolist pacman.conf
+ cp pacman.conf pacman.conf.0
+ # Prevent error messages because of missing /etc/pacman.d/mirrorlist
+ sed 's|^\(Include =\)|#\1|' -i pacman.conf
+ fi
+ fi
+fi
+
diff --git a/build_tools/clarch/larch/buildlive b/build_tools/clarch/larch/buildlive
new file mode 100644
index 0000000..4fe1a90
--- /dev/null
+++ b/build_tools/clarch/larch/buildlive
@@ -0,0 +1,537 @@
+# buildlive - functions to build larch live CD
+#
+# Author: Michael Towers <gradgrind[at]online[dot]de>
+#
+# This file is part of the larch project.
+#
+# larch is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# larch is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with larch; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+#
+#----------------------------------------------------------------------------
+# 2008.06.07
+
+# Location for the CD image
+CDDATA="${LARCHBUILD}/cd"
+
+############ ENTRY POINT - mklive ###############
+
+#+++++++mklive: main function for building larch system from
+# Arch installation at ${INSTLDIR}, which can
+# be '' to use currently running Arch installation.
+
+mklive ()
+{
+ echo "//"
+ echo "// **********************************************************"
+ echo "//"
+ if [ -n "${REUSE}" ] && [ -e ${CDDATA}/system.sqf ]; then
+ echo "// ***** Recreating live CD with old squashed system"
+ REGEN="yes"
+ else
+ echo "// ***** Creating live CD from system at '${INSTLDIR}'"
+ REGEN="no"
+ fi
+
+ echo "//"
+ echo "// This will delete EVERYTHING under ::: ${CDDATA} :::"
+ echo "//"
+ if [ -z "${DONTASK}" ]; then
+ echo "// I really mean it ... Are you sure you want to do this?"
+ echo "// **********************************************************"
+ # Await yes or no
+ read -p "[y/N]: " ans
+ if [ -z "$( echo ${ans} | grep '^ *[yY]' )" ]; then return 0; fi
+ echo
+ fi
+
+ # Get kernel version
+ if ! find_kernel; then
+ return 1
+ fi
+
+ # If not building live CD from currently running system, chroot is
+ # needed sometimes. 'chrootx' simplifies this a bit.
+ if [ -n "${INSTLDIR}" ]; then
+ chrootx="chroot ${INSTLDIR} "
+ else
+ chrootx=""
+ fi
+
+ # Test for necessary packages/modules
+ fail=0
+ aufs=''
+ if ! ${chrootx}grep /squashfs.ko \
+ /lib/modules/${KVERSION}/modules.dep &>/dev/null; then
+ echo "ERROR: No squashfs module found"
+ fail=1
+ fi
+ if ${chrootx}grep /aufs.ko \
+ /lib/modules/${KVERSION}/modules.dep &>/dev/null; then
+ aufs='_aufs'
+ echo "Using aufs"
+ elif ${chrootx}grep /unionfs.ko \
+ /lib/modules/${KVERSION}/modules.dep &>/dev/null; then
+ echo "Using unionfs"
+ else
+ echo "ERROR: No aufs or unionfs module found"
+ fail=1
+ fi
+
+ mustpacs="linhes-live lzop tar squashfs-tools"
+ if [ -z "${GRUB}" ]; then
+ mustpacs="${mustpacs} syslinux"
+ fi
+ for p in ${mustpacs}; do
+ pac=$( ls ${INSTLDIR}/var/lib/pacman/local | egrep "^${p}-[^-]+-[^-]+$" )
+ if [ -z "${pac}" ]; then
+ echo "ERROR: Package ${p} is not installed on target"
+ fail=1
+ fi
+ done
+
+ if [ -z "${USB}" ] && ! which mkisofs &>/dev/null; then
+ echo "ERROR: mkisofs not found -"
+ echo " cdrkit (or cdrtools) must be installed on host"
+ fail=1
+ fi
+
+ if [ ${fail} -ne 0 ]; then
+ return 1
+ fi
+
+ # Temporary directory for building stuff
+ rm -rf ${LARCHBUILD}/tmp
+ mkdir -p ${LARCHBUILD}/tmp
+
+ # If using old sqf files move them to a temporary, safe location
+ if [ ${REGEN} = "yes" ]; then
+ echo "// moving old system image to ${LARCHBUILD}/tmp"
+ mv ${CDDATA}/system.sqf ${LARCHBUILD}/tmp
+ fi
+
+
+ ############## START: copying data to boot medium image directory (CDDATA)
+
+ # Clear out the directory.
+ echo "// copying cd-root to ${CDDATA}"
+ mkdir -p ${CDDATA}
+ rm -Rf ${CDDATA}/*
+
+ # cd-root: first general stuff, then from profile
+ cp -R ${LARCHDATA}/cd-root/* ${CDDATA}
+ if [ -n "${PROFILE}" ]; then
+ cp -Rf ${PROFILE}/cd-root/* ${CDDATA}
+ fi
+
+ # kernel
+ echo "// copying kernel from ${INSTLDIR}/boot to ${CDDATA}/boot/vmlinuz"
+ echo "// ... using ${VMLINUZ}"
+ cp -f ${INSTLDIR}/boot/${VMLINUZ} ${CDDATA}/boot/vmlinuz
+
+ ### Generate initcpio (using chroot if necessary) then copy it to CDDATA
+
+ # If there is a mkinitcpio.conf in profile, use it
+ if [ -n "${PROFILE}" ] && [ -f ${PROFILE}/mkinitcpio.conf ]; then
+ cp -f ${PROFILE}/mkinitcpio.conf ${INSTLDIR}/lib/initcpio
+ fi
+
+ # Fix up mkinitcpio.conf for unionfs/aufs
+ sed -i "s|___aufs___|${aufs}|g" ${INSTLDIR}/lib/initcpio/mkinitcpio.conf
+
+ echo "// calling gen_larch_init to generate the initramfs"
+ ${chrootx}/lib/initcpio/gen_larch_init ${KVERSION}
+ if [ -n "${INSTLDIR}" ]; then
+ mv -f ${INSTLDIR}/larch.img ${CDDATA}/boot
+ else
+ mv -f larch.img ${CDDATA}/boot
+ fi
+
+ #!!!!! This can't be allowed if ${INSTLDIR} = ''
+ # mkinitcpio seems to use the '/tmp' directory, so clear it out
+ if [ -n "${INSTLDIR}" ]; then
+ rm -rf ${INSTLDIR}/tmp/*
+ fi
+
+ ### END of initcpio generation
+
+ ### if no saved system.sqf, squash the Arch installation at ${INSTLDIR}
+ if [ ! -e "${LARCHBUILD}/tmp/system.sqf" ]; then
+ ignorefiles=/.larch/ignorefiles
+ :>${INSTLDIR}${ignorefiles}
+
+ echo "// ignoring superfluous initrd/initramfs images from /boot"
+ # Only the fallbacks should make it to system.sqf, as the others
+ # won't work on other systems anyway, and should be regenerated.
+ for i in $( ls ${INSTLDIR}/boot | grep "kernel.*\.img" ); do
+ if [ -z "$( echo ${i} | grep "fallback" )" ]; then
+ echo " ... ${i}"
+ echo "boot/${i}" >>${INSTLDIR}${ignorefiles}
+ fi
+ done
+
+ # root directories which are not included in the squashed system.sqf
+ ignoredirs="dev mnt media proc sys tmp var .larch .livesys"
+
+ echo "// creating compressed image of linux system: system.sqf"
+ mksquash "/" "/.larch/tmp/system.sqf" -ef ${ignorefiles} \
+ -e ${ignoredirs}
+ if [ $? -ne 0 ]; then
+ return 1
+ fi
+
+ # Add /var, but mask out some undesirable stuff: use mount --bind
+ # first make fresh pacman cache, log and tmp directories
+ mkdir -p ${LARCHBUILD}/tmp/varbld/paccache
+ mkdir -p ${LARCHBUILD}/tmp/varbld/varlog/old
+ :>${LARCHBUILD}/tmp/varbld/varlog/wtmp
+ :>${LARCHBUILD}/tmp/varbld/varlog/utmp
+ :>${LARCHBUILD}/tmp/varbld/varlog/btmp
+ chmod 600 ${LARCHBUILD}/tmp/varbld/varlog/btmp
+ :>${LARCHBUILD}/tmp/varbld/varlog/lastlog
+ mkdir -m 1777 ${LARCHBUILD}/tmp/varbld/vartmp
+ # and a mount point for var, then mount it
+ mkdir -p ${LARCHBUILD}/tmp/varbld/var0/var
+ mount --bind ${INSTLDIR}/var ${LARCHBUILD}/tmp/varbld/var0/var
+ # mount the cover-ups
+ mount --bind ${LARCHBUILD}/tmp/varbld/paccache \
+ ${LARCHBUILD}/tmp/varbld/var0/var/cache/pacman
+ mount --bind ${LARCHBUILD}/tmp/varbld/varlog \
+ ${LARCHBUILD}/tmp/varbld/var0/var/log
+ mount --bind ${LARCHBUILD}/tmp/varbld/vartmp \
+ ${LARCHBUILD}/tmp/varbld/var0/var/tmp
+ # do the squashing
+ mksquash "/.larch/tmp/varbld/var0" "/.larch/tmp/system.sqf"
+ res=$?
+
+ # unmount all the binds
+ umount ${LARCHBUILD}/tmp/varbld/var0/var/tmp
+ umount ${LARCHBUILD}/tmp/varbld/var0/var/log
+ umount ${LARCHBUILD}/tmp/varbld/var0/var/cache/pacman
+ umount ${LARCHBUILD}/tmp/varbld/var0/var
+ rm -r ${LARCHBUILD}/tmp/varbld
+
+ if [ ${res} -ne 0 ]; then
+ echo "Failed while extending /var"
+ return 1
+ fi
+
+ fi
+
+ # move system.sqf to boot-medium image directory
+ echo "// moving squashed system image from ${LARCHBUILD}/tmp"
+ mv ${LARCHBUILD}/tmp/system.sqf ${CDDATA}
+ if [ $? -ne 0 ]; then
+ echo "ERROR: failed to move system.sqf to build area"
+ return 1
+ fi
+
+ ##### Prepare initial overlay
+ echo "// building overlay"
+
+ # Build overlay in a temporary directory
+ rm -rf ${LARCHBUILD}/tmp/overlay
+
+ # Copy over the overlay(s) from the selected profile
+ if [ -n "${PROFILE}" ]; then
+ # Note that ownership/mode of all files in overlay(.xpk) must be
+ # correct! This information will be preserved.
+ if [ -d ${PROFILE}/overlay ]; then
+ cp -a ${PROFILE}/overlay ${LARCHBUILD}/tmp
+ elif [ -f ${PROFILE}/overlay.xpk ]; then
+ # deal with packed overlay
+ ${PROFILE}/overlay.xpk ${LARCHBUILD}/tmp
+ else
+ mkdir ${LARCHBUILD}/tmp/overlay
+ fi
+
+ if [ -d ${PROFILE}/rootoverlay ]; then
+ cp -rf ${PROFILE}/rootoverlay/* ${LARCHBUILD}/tmp/overlay
+ fi
+
+ fi
+
+ # Ensure the overlay has at least the /etc folder
+ mkdir -p ${LARCHBUILD}/tmp/overlay/etc
+
+ # Save original /etc/inittab, /etc/rc.sysinit and /etc/rc.shutdown
+ for fsave in inittab rc.sysinit rc.shutdown; do
+ if [ -f ${INSTLDIR}/etc/${fsave}.livesave ]; then
+ # A running larch system will already have this file, and it
+ # shouldn't be overwritten
+ echo "// /etc/${fsave}.livesave exists already, not overwriting"
+ elif [ -f ${LARCHBUILD}/tmp/overlay/etc/${fsave}.livesave ]; then
+ # A profile can supply this file in the overlay, and it
+ # shouldn't be overwritten
+ echo "// /etc/${fsave}.livesave found in overlay, not overwriting"
+ else
+ cp ${INSTLDIR}/etc/${fsave} \
+ ${LARCHBUILD}/tmp/overlay/etc/${fsave}.livesave
+ fi
+ done
+
+ # Place the live rc.sysinit and rc.shutdown scripts in the overlay
+ cp ${INSTLDIR}/etc/rc.sysinit-live ${LARCHBUILD}/tmp/overlay/etc/rc.sysinit
+ cp ${INSTLDIR}/etc/rc.shutdown-live ${LARCHBUILD}/tmp/overlay/etc/rc.shutdown
+
+ # Add IgnorePkg to pacman.conf
+ if ! [ -f ${LARCHBUILD}/tmp/overlay/etc/pacman.conf ]; then
+ cp ${INSTLDIR}/etc/pacman.conf ${LARCHBUILD}/tmp/overlay/etc/pacman.conf
+ fi
+ if ! grep "+++LARCH-IGNORE+++" ${LARCHBUILD}/tmp/overlay/etc/pacman.conf \
+ &>/dev/null; then
+ igpak="IgnorePkg = kernel26 aufs initscripts"
+ for pak in $( cat ${PROFILE}/noupdate 2>/dev/null ); do
+ igpak="${igpak} ${pak}"
+ done
+ sed "/\[options\]/ a\#+++LARCH-IGNORE+++\n${igpak}\n#---LARCH-IGNORE---" \
+ -i ${LARCHBUILD}/tmp/overlay/etc/pacman.conf
+ fi
+
+ # Generate customized /etc/rc.conf
+ if [ -n "${PROFILE}" ] && [ -f ${PROFILE}/rcconfx ]; then
+ # If there is one in the given overlay, start with that
+ if [ ! -f ${LARCHBUILD}/tmp/overlay/etc/rc.conf ]; then
+ # else copy the default one
+ cp ${INSTLDIR}/etc/rc.conf ${LARCHBUILD}/tmp/overlay/etc
+ fi
+ cat ${PROFILE}/rcconfx | grep -v "^#" | grep "=" | { while read line; do
+ var="$( echo ${line} | cut -d'=' -f1 )"
+ sed -i "s|^${var}=.*|${line}|" \
+ ${LARCHBUILD}/tmp/overlay/etc/rc.conf
+ done }
+ fi
+
+ # Add hostname to /etc/hosts localhost, if making new rc.conf
+ if [ -f ${LARCHBUILD}/tmp/overlay/etc/rc.conf ]; then
+ hosts=${LARCHBUILD}/tmp/overlay/etc/hosts
+ if ! [ -f ${LARCHBUILD}/tmp/overlay/etc/hosts ]; then
+ cp ${INSTLDIR}/etc/hosts ${LARCHBUILD}/tmp/overlay/etc
+ fi
+ ( . ${LARCHBUILD}/tmp/overlay/etc/rc.conf;
+ lh="127.0.0.1 localhost.localdomain localhost ";
+ sed -i "s|^127\.0\.0\.1.*|${lh}${HOSTNAME}|" ${hosts}
+ )
+ fi
+
+ # Handle /mnt
+ mkdir -p ${LARCHBUILD}/tmp/overlay/mnt
+ for d in $( ls ${INSTLDIR}/mnt ); do
+ if [ -d ${INSTLDIR}/mnt/${d} ]; then
+ mkdir ${LARCHBUILD}/tmp/overlay/mnt/${d}
+ fi
+ done
+
+ echo "// creating compressed image of larch mods: mods.sqf"
+
+ # Make 'mods' archive from all but /etc
+ mksquash "/.larch/tmp/overlay" "/.larch/cd/mods.sqf" -e etc
+ if [ $? -ne 0 ]; then
+ return 1
+ fi
+
+ echo "// creating compressed image of remaining larch mods: overlay.ovl"
+
+ # Compress the overlay (with root dir 'overlay' retained)
+ ${chrootx} bash -c "tar -cf - -C /.larch/tmp overlay/etc |
+ lzop > /.larch/cd/overlay.ovl"
+
+ rm -rf ${LARCHBUILD}/tmp/overlay
+
+ ##### End of overlay creation
+ ############## END: copying data to boot medium image directory (CDDATA)
+
+ # The boot medium image is now ready
+ buildiso
+}
+
+
+
+########## START: functions for building iso from image directory ##########
+
+#+++++++buildiso: set up boot medium image folder and then
+# create iso or call usb medium handler
+
+buildiso ()
+{
+ mkdir ${CDDATA}/tmp
+ if [ -f ${CDDATA}/boot/vmlinuz ]; then
+ bd=${CDDATA}/boot
+ else
+ bd=${CDDATA}/isolinux
+ fi
+ cp ${bd}/{vmlinuz,larch.img} ${CDDATA}/tmp
+ rm -rf ${CDDATA}/{isolinux,boot}
+ if [ -n "${GRUB}" ]; then
+ mv ${CDDATA}/tmp ${CDDATA}/boot
+
+ mkdir -p ${CDDATA}/boot/grub
+ cp ${INSTLDIR}/usr/lib/grub/i386-pc/* ${CDDATA}/boot/grub
+ cp -r ${LARCHDATA}/cd-root/boot ${CDDATA}
+ if [ -n "${PROFILE}" ] && [ -d ${PROFILE}/cd-root/boot ]; then
+ cp -rf ${PROFILE}/cd-root/boot ${CDDATA} 2>/dev/null
+ fi
+
+ if [ -n "${USB}" ]; then
+ usbboot_grub ${INSTLDIR}
+ else
+ echo "// creating GRUB-booting LiveCD ISO image..."
+ mkiso "-b boot/grub/stage2_eltorito"
+ fi
+ else
+ mv ${CDDATA}/tmp ${CDDATA}/isolinux
+
+ cp -r ${LARCHDATA}/cd-root/isolinux ${CDDATA}
+ if [ -n "${PROFILE}" ] && [ -d ${PROFILE}/cd-root/isolinux ]; then
+ cp -rf ${PROFILE}/cd-root/isolinux ${CDDATA} 2>/dev/null
+ fi
+
+ isolinuxbin=${INSTLDIR}/usr/lib/syslinux/isolinux.bin
+ if [ -f ${isolinuxbin} ]; then
+ cp ${isolinuxbin} ${CDDATA}/isolinux
+ else
+ echo "ERROR: ${isolinuxbin} not found -"
+ echo " syslinux must be installed on live system"
+ return 1
+ fi
+
+ #if [ -n "${USB}" ]; then
+ # usbboot ${INSTLDIR}
+ # else
+ echo "// creating isolinux-booting LiveCD ISO image..."
+ mkiso "-b isolinux/isolinux.bin -c isolinux/isolinux.boot"
+ usbboot ${INSTLDIR} ${startdir}
+
+ # fi
+ fi
+}
+
+#+++++++mkiso: helper function for calling mkisofs
+
+mkiso ()
+{
+ mkisofs -r -l $1 \
+ -no-emul-boot -boot-load-size 4 -boot-info-table \
+ -input-charset=UTF-8 \
+ -publisher "Cecil H. Watson, license: GPL" \
+ -A "LinHES_6" \
+ -p "http://www.knoppmyth.net" \
+ -o "${LARCHBUILD}/mylivecd.iso" "${CDDATA}"
+
+ if [ $? -eq 0 ]; then
+ echo "// Your ISO has been created as ${LARCHBUILD}/mylivecd.iso"
+ else
+ echo "ERROR: iso build failed" 1>&2
+ return 1
+ fi
+}
+
+########## END: functions for building iso ##########
+
+
+
+#+++++++mksquash: helper function for using mksquashfs via chroot
+
+mksquash ()
+{
+ if [ -n "${INSTLDIR}" ]; then
+ mount --bind /proc ${INSTLDIR}/proc
+ eval chroot ${INSTLDIR} /sbin/mksquashfs $*
+ umount ${INSTLDIR}/proc
+ else
+ /sbin/mksquashfs $*
+ fi
+ if [ $? -ne 0 ]; then
+ echo "ERROR: squash failed --- mksquashfs $*"
+ return 1
+ fi
+ chmod oga-x "${INSTLDIR}/$2" # remove execute attrib
+}
+
+
+#+++++++find_kernel: helper function to get kernel information
+
+find_kernel ()
+{
+ # Discover kernel
+ if [ -n "${PROFILE}" ] && [ -f ${PROFILE}/kernel ]; then
+ . ${PROFILE}/kernel
+ else
+ VMLINUZ=( $( ls ${INSTLDIR}/boot | egrep ".*vmlinuz.*" ) )
+ if [ ${#VMLINUZ[@]} -gt 1 ]; then
+ echo "Error - more than 1 kernel found:"
+ for k in ${VMLINUZ[@]}; do
+ echo " $k"
+ done
+ return 1
+ elif [ ${#VMLINUZ[@]} -ne 1 ]; then
+ echo "Error - no kernel found"
+ return 1
+ fi
+
+ # Discover kernel version
+ KVERSION=""
+ KVERSIONS=$( ls ${INSTLDIR}/lib/modules )
+ for kv in ${KVERSIONS}; do
+ # Check for 'build' symlink
+ if [ -h ${INSTLDIR}/lib/modules/${kv}/build ]; then
+ if [ -n "${KVERSION}" ]; then
+ echo "Error - more than one set of kernel modules in ${INSTLDIR}/lib/modules"
+ return 1
+ fi
+ KVERSION=${kv}
+ else
+ # Dubious set of modules found
+ echo "WARNING:"
+ echo " You seem to have installed a package containing modules"
+ echo "which aren't compatible with your kernel."
+ echo "Please check that this won't cause problems."
+ echo "Maybe you need the corresponding package"
+ echo "for your kernel?"
+ km=$( find ${INSTLDIR}/lib/modules/${kv} -name "*.ko" | \
+ sed "s|^${INSTLDIR}||" )
+ pkgs=""
+ for m in ${km}; do
+ # Use pacman to find the owning package
+ p=$( chroot ${INSTLDIR} pacman -Qo ${m} )
+ # Extract the package name, and surround it with '|'s for easier matching
+ pname="|$( echo "${p}" | cut -d " " -f 5 )|"
+ # Only report each package once
+ if [ -z "$( echo ${pkgs} | grep "${pname}" )" ]; then
+ pkgs="${pkgs} ${pname}"
+ echo ${p}
+ echo " Package: $( echo "${pname}" | \
+ sed "s/|//g" )"
+ echo
+ fi
+ done
+ # Await yes or no
+ read -p "Continue? [y/N]: " ans
+ if [ -z "$( echo ${ans} | grep '^ *[yY]' )" ]; then return 0; fi
+ fi
+ done
+ fi
+ if [ -z "${KVERSION}" ]; then
+ echo "Error - couldn't find kernel modules"
+ return 1
+ fi
+ echo "// Kernel version: ${KVERSION}"
+ # Must regenerate kernel dependency files
+ echo "// -> regenerating kernel dependencies"
+ if [ -n "${INSTLDIR}" ]; then
+ depmod -b "${INSTLDIR}" "${KVERSION}"
+ else
+ depmod "${KVERSION}"
+ fi
+ echo
+}
diff --git a/build_tools/clarch/larch/cd-root/boot/grub/colors.lst b/build_tools/clarch/larch/cd-root/boot/grub/colors.lst
new file mode 100644
index 0000000..faa9c8f
--- /dev/null
+++ b/build_tools/clarch/larch/cd-root/boot/grub/colors.lst
@@ -0,0 +1,36 @@
+#color schemes - ganked from SGD ( http://freshmeat.net/projects/supergrub/?branch_id=62132&release_id=236631 )
+# TODO change these and make some more... specifically an "arch" theme
+timeout 300
+default 0
+color light-blue/blue black/light-grey
+splashimage=/boot/splash.xpm.gz
+
+title << Back to Main Menu
+configfile /boot/grub/menu.lst
+
+title Barlond
+color white/cyan yellow/blue
+
+title Barlond2
+color white/blue yellow/cyan
+
+title Simple Black
+color light-gray/black yellow/blue
+
+title Matrix
+color green/black light-green/green
+
+title Dalton Bros.
+color red/green green/red
+
+title Debian
+color cyan/blue white/blue
+
+title BW
+color light-gray/black black/light-gray
+
+title BW Inverse
+color black/light-gray
+
+title SGD Non Default
+color black/cyan yellow/black
diff --git a/build_tools/clarch/larch/cd-root/boot/grub/help.lst b/build_tools/clarch/larch/cd-root/boot/grub/help.lst
new file mode 100644
index 0000000..13eeb42
--- /dev/null
+++ b/build_tools/clarch/larch/cd-root/boot/grub/help.lst
@@ -0,0 +1,16 @@
+# Help files must be exactly 23 lines long.
+timeout 300
+default 0
+color light-blue/blue black/light-grey
+splashimage=/boot/splash.xpm.gz
+
+title << Back to main menu
+configfile /boot/grub/menu.lst
+
+title HOW-TO: Boot an existing system
+cat /boot/help/bootexisting.txt
+pause Press enter to continue...
+
+title HOW-TO: Contribute to this help
+cat /boot/help/contrib.txt
+pause Press enter to continue...
diff --git a/build_tools/clarch/larch/cd-root/boot/grub/keyboards.lst b/build_tools/clarch/larch/cd-root/boot/grub/keyboards.lst
new file mode 100644
index 0000000..b7a990e
--- /dev/null
+++ b/build_tools/clarch/larch/cd-root/boot/grub/keyboards.lst
@@ -0,0 +1,111 @@
+#keyboard layouts - ganked from SGD ( http://freshmeat.net/projects/supergrub/?branch_id=62132&release_id=236631 )
+# TODO add other languages
+timeout 300
+default 0
+color light-blue/blue black/light-grey
+splashimage=/boot/splash.xpm.gz
+
+title << Back to Main Menu
+configfile /boot/grub/menu.lst
+
+title Default layout
+setkey
+
+title German layout
+setkey y z
+setkey z y
+setkey Y Z
+setkey Z Y
+setkey equal parenright
+setkey parenright parenleft
+setkey parenleft asterisk
+setkey doublequote at
+setkey plus bracketright
+setkey minus slash
+setkey slash ampersand
+setkey ampersand percent
+setkey percent caret
+setkey underscore question
+setkey question underscore
+setkey semicolon less
+setkey less numbersign
+setkey numbersign backslash
+setkey colon greater
+setkey greater bar
+setkey asterisk braceright
+
+
+title Spanish layout
+setkey
+setkey slash ampersand
+setkey ampersand caret
+setkey caret braceleft
+setkey asterisk braceright
+setkey parenleft asterisk
+setkey parenright parenleft
+setkey minus slash
+setkey equal parenright
+setkey quote minus
+setkey underscore question
+setkey question underscore
+setkey braceleft quote
+setkey braceright backslash
+setkey colon greater
+setkey greater bar
+setkey doublequote at
+setkey backslash backquote
+setkey less backslash
+setkey semicolon less
+setkey plus colon
+setkey at semicolon
+
+title French layout
+setkey
+setkey less backquote
+setkey greater tilde
+setkey ampersand 1
+setkey 1 exclam
+setkey tilde 2
+setkey 2 at
+setkey doublequote 3
+setkey 3 numbersign
+setkey quote 4
+setkey 4 dollar
+setkey parenleft 5
+setkey 5 percent
+setkey minus 6
+setkey 6 caret
+setkey backquote 7
+setkey 7 ampersand
+setkey underscore 8
+setkey 8 asterisk
+setkey backslash 9
+setkey 9 parenleft
+setkey at 0
+setkey 0 parenright
+setkey parenright minus
+setkey numbersign underscore
+setkey a q
+setkey A Q
+setkey z w
+setkey Z W
+setkey caret bracketleft
+setkey dollar bracketright
+setkey q a
+setkey Q A
+setkey m semicolon
+setkey M colon
+setkey bracketleft quote
+setkey percent doublequote
+setkey asterisk backslash
+setkey bracketright bar
+setkey w z
+setkey W Z
+setkey comma m
+setkey question M
+setkey semicolon comma
+setkey period less
+setkey colon period
+setkey slash greater
+setkey exclam slash
+setkey bar question
diff --git a/build_tools/clarch/larch/cd-root/boot/grub/menu.lst b/build_tools/clarch/larch/cd-root/boot/grub/menu.lst
new file mode 100644
index 0000000..3783d81
--- /dev/null
+++ b/build_tools/clarch/larch/cd-root/boot/grub/menu.lst
@@ -0,0 +1,27 @@
+timeout 5
+default 0
+color light-blue/blue black/light-grey
+splashimage=/boot/splash.xpm.gz
+
+title Boot larch
+kernel /boot/vmlinuz
+initrd /boot/larch.img
+
+title Tools...
+configfile /boot/grub/tools.lst
+
+title Grub Settings...
+configfile /boot/grub/settings.lst
+
+title View Help...
+configfile /boot/grub/help.lst
+
+title More Options...
+configfile /boot/grub/more.lst
+
+title Shutdown the Computer
+halt
+
+title Reboot the Computer
+reboot
+
diff --git a/build_tools/clarch/larch/cd-root/boot/grub/more.lst b/build_tools/clarch/larch/cd-root/boot/grub/more.lst
new file mode 100644
index 0000000..097d7d3
--- /dev/null
+++ b/build_tools/clarch/larch/cd-root/boot/grub/more.lst
@@ -0,0 +1,30 @@
+timeout 300
+default 0
+color light-blue/blue black/light-grey
+splashimage=/boot/splash.xpm.gz
+
+title << Back to Main Menu
+configfile /boot/grub/menu.lst
+
+title [EXPERIMENTAL] Attempt existing Linux detection
+configfile /boot/grub/tryboot.lst
+
+title [EDIT ME] Diskless Boot (PXE / BOOTP)
+#TODO wtf?
+root (nd)
+kernel /vmlinuz26 ip=dhcp root=/dev/nfs nfsroot=192.168.1.2:/boot/dir
+
+title [EDIT ME] NFS Root Boot
+root (cd)
+kernel /vmlinuz26 ip=dhcp root=/dev/nfs nfsroot=192.168.1.2:/boot/dir
+
+title [EDIT ME] Boot Existing Linux Install
+root (hd0,0)
+kernel /vmlinuz26 root=/dev/hda3 ro
+initrd /kernel26.img
+
+title [EDIT ME] Boot Existing Windows Install
+rootnoverify (hd0,0)
+makeactive
+chainloader +1
+
diff --git a/build_tools/clarch/larch/cd-root/boot/grub/settings.lst b/build_tools/clarch/larch/cd-root/boot/grub/settings.lst
new file mode 100644
index 0000000..a2dfd3b
--- /dev/null
+++ b/build_tools/clarch/larch/cd-root/boot/grub/settings.lst
@@ -0,0 +1,13 @@
+timeout 300
+default 0
+color light-blue/blue black/light-grey
+splashimage=/boot/splash.xpm.gz
+
+title << Back to Main Menu
+configfile /boot/grub/menu.lst
+
+title Keyboard settings
+configfile /boot/grub/keyboards.lst
+
+title Color settings
+configfile /boot/grub/colors.lst
diff --git a/build_tools/clarch/larch/cd-root/boot/grub/tools.lst b/build_tools/clarch/larch/cd-root/boot/grub/tools.lst
new file mode 100644
index 0000000..609962e
--- /dev/null
+++ b/build_tools/clarch/larch/cd-root/boot/grub/tools.lst
@@ -0,0 +1,23 @@
+timeout 300
+default 0
+color light-blue/blue black/light-grey
+splashimage=/boot/splash.xpm.gz
+
+title << Back to Main Menu
+configfile /boot/grub/menu.lst
+
+title Run memtest (Memory Testing)
+kernel /boot/memtest
+
+# http://www.vortex.prodigynet.co.uk/x86test/
+title Run x86test (CPU Info)
+kernel /boot/x86test_zImage.bin
+#wget http://www.vortex.prodigynet.co.uk/x86test/x86test_zImage.bin
+
+# http://home.san.rr.com/johninsd/pub/linux/lilo/boot/
+title LILO Diagnostic
+kernel /boot/diag2.img
+
+title Install GRUB to hd0 MBR
+root (hd0,0)
+setup (hd0)
diff --git a/build_tools/clarch/larch/cd-root/boot/help/bootexisting.txt b/build_tools/clarch/larch/cd-root/boot/help/bootexisting.txt
new file mode 100644
index 0000000..540e41f
--- /dev/null
+++ b/build_tools/clarch/larch/cd-root/boot/help/bootexisting.txt
@@ -0,0 +1,24 @@
+HOWTO: Boot an existing install
+
+Select "More Options" from the main menu.
+Move the cursor to "[EDIT ME] Boot an existing linux install"
+Press "e"
+
+At this point you will see the following:
+ root (hd0,0)
+ kernel /vmlinuz26 root=/dev/hda3 ro
+ initrd /kernel26.img
+
+This needs to be changed to accomodate your hardware.
+
+The first line should be changed to indicate where your boot medium resides.
+ "(hd0,0)" is the first partition on the first hard drive (hda1) - change these
+ numbers to indicate the partition containing your /boot directory.
+
+The second line should be changed to point to your kernel. If the line above
+points to a partition _only_ containing /boot, then /vmlinuz26 is fine.
+Otherwise, change this to /boot/vmlinuz. root= should be changed to match the
+partition for your root filesystem. Other kernel parameters can be added here.
+
+
+
diff --git a/build_tools/clarch/larch/cd-root/boot/help/contrib.txt b/build_tools/clarch/larch/cd-root/boot/help/contrib.txt
new file mode 100644
index 0000000..a854a0b
--- /dev/null
+++ b/build_tools/clarch/larch/cd-root/boot/help/contrib.txt
@@ -0,0 +1,23 @@
+HOWTO: Contribute to these help files
+
+This help is rather simplistic.
+In order to provide help files or translations you simply need to make a text
+file. Formatting is important (due to grub limitations). The files MUST be 80
+characters wide, and 23 lines long. Any more, and your formatting will be
+corrupted when viewing the help. Please note that if your help is short, it is
+worthwhile to pad with empty lines, up to 23 lines.
+
+Please send any and all help files you wish to contribute, or any ideas for
+help, to arch@archlinux.org with "[isohelp]" in the title.
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/build_tools/clarch/larch/cd-root/boot/splash.xpm.gz b/build_tools/clarch/larch/cd-root/boot/splash.xpm.gz
new file mode 100644
index 0000000..9f128bf
--- /dev/null
+++ b/build_tools/clarch/larch/cd-root/boot/splash.xpm.gz
Binary files differ
diff --git a/build_tools/clarch/larch/cd-root/isolinux/bkgd.jpg b/build_tools/clarch/larch/cd-root/isolinux/bkgd.jpg
new file mode 100644
index 0000000..b45b71f
--- /dev/null
+++ b/build_tools/clarch/larch/cd-root/isolinux/bkgd.jpg
Binary files differ
diff --git a/build_tools/clarch/larch/cd-root/isolinux/isolinux.cfg b/build_tools/clarch/larch/cd-root/isolinux/isolinux.cfg
new file mode 100644
index 0000000..b37e4aa
--- /dev/null
+++ b/build_tools/clarch/larch/cd-root/isolinux/isolinux.cfg
@@ -0,0 +1,29 @@
+default vesamenu.c32
+prompt 0
+timeout 50
+
+MENU BACKGROUND bkgd.jpg
+
+MENU TITLE larch live CD
+
+label linux
+MENU LABEL Default: no swap, no copy-to-ram
+kernel vmlinuz
+append initrd=larch.img
+# or with video mode for beyond kernel:
+#append initrd=larch.img video=vesafb:ywrap,mtrr,800x600@60
+
+label linux-c2r
+MENU LABEL larch copy-to-ram (also activates swap)
+kernel vmlinuz
+append initrd=larch.img c2r
+
+label linux-swap
+MENU LABEL larch with swap
+kernel vmlinuz
+append initrd=larch.img swap
+
+
+label memtest
+MENU LABEL Memory tester
+kernel memtest
diff --git a/build_tools/clarch/larch/cd-root/isolinux/memtest b/build_tools/clarch/larch/cd-root/isolinux/memtest
new file mode 100644
index 0000000..3d0f46d
--- /dev/null
+++ b/build_tools/clarch/larch/cd-root/isolinux/memtest
Binary files differ
diff --git a/build_tools/clarch/larch/cd-root/isolinux/vesamenu.c32 b/build_tools/clarch/larch/cd-root/isolinux/vesamenu.c32
new file mode 100644
index 0000000..698198f
--- /dev/null
+++ b/build_tools/clarch/larch/cd-root/isolinux/vesamenu.c32
Binary files differ
diff --git a/build_tools/clarch/larch/cd-root/larch/larchboot b/build_tools/clarch/larch/cd-root/larch/larchboot
new file mode 100644
index 0000000..ab6c40a
--- /dev/null
+++ b/build_tools/clarch/larch/cd-root/larch/larchboot
@@ -0,0 +1,2 @@
+This file must be present in the CD/USB-stick /larch folder for the
+device to be recognized as the boot device.
diff --git a/build_tools/clarch/larch/cd-root/larch/save b/build_tools/clarch/larch/cd-root/larch/save
new file mode 100644
index 0000000..3d31560
--- /dev/null
+++ b/build_tools/clarch/larch/cd-root/larch/save
@@ -0,0 +1 @@
+The presence of this file enables session saving.
diff --git a/build_tools/clarch/larch/docs/CHANGES b/build_tools/clarch/larch/docs/CHANGES
new file mode 100644
index 0000000..188cf99
--- /dev/null
+++ b/build_tools/clarch/larch/docs/CHANGES
@@ -0,0 +1,109 @@
+2008.08.10
+Version 5.3.8
+Added pacman-packed.tar.gz to repository, a self-contained pacman package,
+including the libraries it needs to run. So now building on non-Arch
+systems shuold work again.
+Adjusted larch-setup to handle this new package.
+'mirrorlist' now has '@carch@', which getPackageServer must handle (done
+in PKGBUILD)
+
+2008.08.09
+Version 5.3.7
+The packages.txt file is no longer supplied in Arch repositories, so inpacs
+now gets the list of base packages using (something like) 'pacman -Sg base'.
+As of pacman-3.2 there is no longer a static build, so building larch systems
+on non-Arch boxes will no longer work:(
+Tweaked xmaxi profile.
+
+2008.07.30
+Version 5.3.6
+Remove unmaintained kde profile, replace mc-utf8 by mc in addedpacks
+
+2008.06.22
+Version 5.3.5
+Fix mklarch for building on non-Arch system:
+ - need to create package cache, otherwise inpacs complains.
+ - tweak pacman.conf configuration concerning 'Include =' lines.
+ - usb2bootiso needs bash (#!/bin/bash, not #!/bin/sh)
+ - xpack (and existing .xpk files) fix (bash, not sh, and -n option to tail)
+Try to overcome problems with usb-stick creation when hal remounts device
+after formatting, by adding umount command.
+
+2008.06.07
+Version 5.3.4
+Removed warnings about kconfig (as this is no longer included in Arch kernels.
+Added check for mkisofs on host at beginning of buildlive (if building iso).
+Added check for syslinux on target at beginning of buildlive (if not using
+GRUB).
+Minor profile tweaks.
+
+2008.05.15
+Version 5.3.2, adjusted initscripts approach so that it doesn't require a
+custom initscripts package. Now rc.sysinit and rc.shutdown are replaced (in
+buildlive) by larch versions which are compatible with the standard versions.
+When larch-live is installed, the standard functions will be replaced by
+larch functions. On installation using larchin larch-live will be removed
+so the behaviour reverts to standard Arch behaviour, although the rc scripts
+have been changed. But in any case the originals are saved so that they can
+be restored on installation with larchin.
+
+Changed handling of pacman.conf slightly. When there is a pacman.conf in the
+profile (base directory, not overlay), this will be copied to the working
+directory and used by mklarch, even if there was already a version in the
+working directory. The pacman.conf in the live system will be this version
+if built using mklarch, otherwise the existing version. However an
+'IgnorePkg' line is added for kernel26, aufs and initscripts. Packages
+listed in the 'noupdate' file in the profile, will also be added. This
+line will be removed on installation using larchin.
+
+2008.04.27
+Version 5.3.0, new initscripts approach, replacing functions in
+/etc/rc.d/functions rather than replacing /etc/rc.sysinit and
+/etc/rc.shutdown. At present this requires a custom initscripts package.
+
+2008.04.21
+Version 5.2.2, added usb2iso, a fairly primitive script to make an iso from
+a larch usb-stick. It also works from a running larch system, but only on
+systems with a lot of memory.
+
+2008.04.05
+version 5.2.1, slight reworking of overlay handling in profiles - now files
+owned by root:root do not have to be in overlay.xpk, they can be held within
+directory 'rootoverlay', and their ownership will be changed automatically.
+Files to be copied to /.livesys at boot are now in larch/copy.
+Added larchquit.py to larch-live - special larch quit/logout gui, allows
+selecting session-save options and also autologin user before quitting desktop,
+included it in xmini menu/panel.
+Other tweaks to xmini profile.
+
+2008.02.27
+Incompatible changes. WARNING!
+With version 5.2 the init system has changed, in particular a custom inittab
+is now required, which means all old profiles are likely to fail (because of
+the /etc/inittab in the overlay).
+
+2008.02.19
+added desktop stuff for documentation
+
+2008.02.18
+version 5.1.3, bugfixes and work on profiles
+documentation updates
+
+2008.02.14
+Reorganization of directory layout,
+new 'larchin' hard disk installer with gui.
+larch version 5.1.0
+larch-live version 5.1.0
+larchin version 5.1.0
+
+2008.01.13
+Adjustments for changes in pacman-3.1, version 5.0.8
+
+2008.01.02
+Fixes for merging when file paths contain spaces (merge_overlay), version 5.0.7
+
+2008.01.02
+larch-5 (with simplified union structure, no CD/DVD session save) available
+for testing.
+
+Initial test release, version 5.0.6.
diff --git a/build_tools/clarch/larch/docs/COPYING b/build_tools/clarch/larch/docs/COPYING
new file mode 100644
index 0000000..d511905
--- /dev/null
+++ b/build_tools/clarch/larch/docs/COPYING
@@ -0,0 +1,339 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
diff --git a/build_tools/clarch/larch/docs/LICENCE b/build_tools/clarch/larch/docs/LICENCE
new file mode 100644
index 0000000..b0e9208
--- /dev/null
+++ b/build_tools/clarch/larch/docs/LICENCE
@@ -0,0 +1,16 @@
+
+ Licence:
+
+ This software is released under the GNU GENERAL PUBLIC LICENSE.
+ See COPYING.
+
+ Warranty:
+
+ This software is distributed with NO WARRANTY, use it at your own risk.
+
+ Author:
+
+ This software was written by
+
+ Michael Towers (gradgrind at online dot de)
+ \ No newline at end of file
diff --git a/build_tools/clarch/larch/docs/README b/build_tools/clarch/larch/docs/README
new file mode 100644
index 0000000..f212c35
--- /dev/null
+++ b/build_tools/clarch/larch/docs/README
@@ -0,0 +1,37 @@
+larch - scripts for building a highly customizable Arch Linux live CD/DVD
+ - or USB-stick
+ - also suitable for installing Arch Linux to a hard disk
+
+Author: Michael Towers (gradgrind at online dot de)
+Licence: GPL (see COPYING, LICENCE)
+
+
+I got my initial inspiration from the "Linux Live scripts" by
+
+Tomas M. <http://www.linux-live.org>
+
+BUT the larch scripts now bear essentially no resemblance to those,
+so don't blame Tomas!
+Thanks are, nevertheless, due to him for his great work, which helped me
+get started.
+
+The main documentation is in the share/docs subdirectory, please read it.
+
+The key components are:
+
+ inpacs - Install a fresh Arch system (with customizable package
+ selection), to a convenient (possibly temporary) location.
+
+ mklarch - Uses 'inpacs' to build an Arch installation in a convenient
+ directory, which it then makes into a live CD, adding
+ modifications (in an overlay) to suit it for use as a live
+ system and for customization.
+
+ larchify - Build a larch live system from an existing Arch Linux
+ installation (including from one made by 'mklarch').
+
+Logos are derived from the Arch Linux logos, and are released under a
+Creative Commons Licence, see 'http://www.archlinux.org/art'.
+
+The larch project uses Arch Linux as its basis, but is not an official
+Arch Linux ('http://www.archlinux.org') project.
diff --git a/build_tools/clarch/larch/docs/ReleaseNotes b/build_tools/clarch/larch/docs/ReleaseNotes
new file mode 100644
index 0000000..b1923d8
--- /dev/null
+++ b/build_tools/clarch/larch/docs/ReleaseNotes
@@ -0,0 +1,37 @@
+2008.01.02
+larch-5 (with simplified union structure, no CD/DVD session save,
+ extended USB-stick session save)
+
+Changes from larch-4:
+
+Split functionality of 'mklarch', so that rebuilds after a 'mklarch' run,
+and other builds from existing Arch installations, are now handled by the
+'larchify' script - 'larchify -h' for usage notes. 'mklarch' now only covers
+initial builds including installation - 'mklarch -h' for usage notes. Note
+that the options have changed!!! For instance, 'mklarch -p' now expects a
+directory as argument and there is no option to copy an example profile to
+the current directory.
+
+'pacin' replaced by 'inpacs' - 'inpacs -h' for usage notes. It is now
+possible to fully customize pacman caches, and even pacman databases,
+including the use of locally networked computers as source (using sshfs or
+NFS). Thus a larch build can be made without an internet connection, if
+all the packages are available locally on a suitably configured Arch
+system.
+
+Completely new union/overlay structure. The overlay is now copied to the
+writable union layer at boot, and can be copied back at shutdown. This
+should speed up session-saving, especially through the use of lzo
+compression rather than squashfs. An additional advantage is that no extra
+memory is required for the reconstruction of the archive.
+
+When the overlay gets too large it can be merged into the secondary overlay,
+a squashfs archive (like in previous larch versions). This takes somewhat
+longer and requires memory for its construction, but subsequent simple
+session saves (to the primary layer) will be faster because of the reduced
+size.
+
+It should now also be possible to run 'larchify' on a running live system,
+allowing a complete reconstruction of the system from within itself,
+merging in updates - in principle even kernel updates should be manageable
+using this method.
diff --git a/build_tools/clarch/larch/docs/Splash_howto b/build_tools/clarch/larch/docs/Splash_howto
new file mode 100644
index 0000000..32660bb
--- /dev/null
+++ b/build_tools/clarch/larch/docs/Splash_howto
@@ -0,0 +1,35 @@
+Using vesamenu this is now much easier ...
+
+For the vesamenu, it is called a background image, rather than splash
+image, because the menu appears on top of it.
+All you need is a 640x480 image in png or jpg format (the default image
+in larch is called bkgd.jpg)!
+
+=======================================================================
+
+But here are the old instructions, just in case ... (the utility programs
+are in the 'syslinux' package):
+
+Splash screen for isolinux/syslinux
+-----------------------------------
+
+This could be easier ...
+Anyway, it needs to be in a particular format. 640 pixels wide and quite
+a bit less than 480 pixels high (to leave space for the boot text).
+Then it may not use more than 16 colours. You can reduce the colour
+depth by setting indexed mode in the GIMP (image - mode). It may be
+sensible to use only 14 or 15 colours (to leave something for the
+text?) - but I didn't really investigate this further. I reduced
+my image to 14 colours.
+Then you can export it to a .ppm file, which serves as input to the
+perl script ppmtolss16, (which comes from the syslinux tarball -
+its inverse is lss16toppm, which is also in there):
+
+./ppmtolss16 < splash.ppm > splash.lss
+
+To test this, convert it back and take a look at the result:
+
+./lss16toppm < splash.lss > test.ppm
+
+Just replace the existing splash.lss file (in cd-root/isolinux) with your
+version.
diff --git a/build_tools/clarch/larch/docs/html/index.html b/build_tools/clarch/larch/docs/html/index.html
new file mode 100644
index 0000000..8584186
--- /dev/null
+++ b/build_tools/clarch/larch/docs/html/index.html
@@ -0,0 +1,128 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+
+<head>
+ <meta content="text/html;charset=UTF-8" http-equiv="Content-Type" />
+ <title>larch introduction</title>
+ <meta content="gradgrind" name="author" />
+</head>
+
+<body>
+
+<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
+ <tbody>
+ <tr>
+ <td><a href="larch_docindex.html">Table of Contents</a></td>
+
+ <td><a href="larch_features.html">Next: Features</a></td>
+ </tr>
+ </tbody>
+</table>
+
+<br />
+
+<h1><big>larch</big> &ndash; a do-it-yourself live <em>Arch Linux</em> CD</h1>
+
+<img style="border: 0px solid ; width: 320px; height: 320px;" alt="" src="larch1.jpg"
+ name="graphics1" align="right" hspace="10" vspace="10" />
+<br /><br />
+
+<h2>Introduction</h2>
+
+<p><em>larch</em> is a collection of scripts designed around the creation and
+use of live CD/DVD/USB-stick versions of <em>Arch Linux</em>.
+</p>
+
+<p>One design aim was easy customization, so that even relatively inexperienced
+users could build personalized live CDs (etc.), containing whatever packages they
+wanted and with their own personal configurations. The resulting medium should
+also be usable for installation purposes, so that one has a customized
+<em>Arch Linux</em> installation/rescue medium. As the content can be chosen
+freely, a comfortable working environment is possible - in contrast to
+the rather Spartan standard <em>Arch</em> installation CD.
+</p>
+
+<p><em>larch</em> also offers a flexible approach to building your live media.
+You can use 'profiles' to determine what gets installed, and how it is
+configured. The advantage of this method is that all your specifications are
+kept together in a folder which can be used to rebuild the same or a similar
+system at a later date. Alternatively you can do a normal <em>Arch Linux</em>
+installation (if there is such a thing!) and then make a live medium from this.
+You can even 'livify' your existing installation (though it might be worth
+tidying it up a bit first ...).
+</p>
+
+<p><em>Squashfs</em> offers convenient compression of the data on the CD so that
+up to about 2 GB of code can be included on a 700 MB CD. <em>aufs</em> (a
+'unification' file system, originally based on <em>unionfs</em>) offers
+the ability to write to all directories even though
+the CDROM is read-only, which allows such fancy stuff as installation
+of new software packages to the running live system. Using <em>aufs</em>
+you could do, say, 'pacman -S fluxbox' and <em>fluxbox</em> would be
+installed. The limit to the amount of overwriting is determined by the size of
+the available memory.
+</p>
+
+<p>All this would normally be gone when you reboot as the changes are
+really only stored in memory. However, thanks to various technical wizardry, it
+is also possible (on suitable media) to save any changes you make while running
+the live system back to the medium on shutdown.
+</p>
+
+<p>Hardware detection is provided by the same <em>udev</em> approach as is used
+in a standard <em>Arch Linux</em> system.
+</p>
+
+<p>The <em>larch</em> project comprises several components. The scripts for
+building a larch live medium are in the <em>larch</em> package, which need not
+itself be installed in the live system, though it may be useful. Scripts and
+data for the live environment are provided in the <em>larch-live</em> package,
+which must be installed in the live system. There is also an optional installer
+(<em>larchin</em>, written in python and bash, with a <em>GTK</em> interface) which
+can install the live system to hard disk, providing a convenient way to install a
+ready-configured <em>Arch Linux</em> system.
+</p>
+
+<p>I have tried to maintain the distribution-independence of the
+<em>larch</em> scripts, so that they can be used on other <em>GNU/Linux</em> systems -
+you shouldn't need an <em>Arch Linux</em> installation in order to build a <em>larch</em>
+live medium, the dependencies (e.g. <em>bash</em>, <em>wget</em>,
+<em>mkisofs</em> ) should be satisfied on pretty well any <em>GNU/Linux</em> system
+(and a static version of <em>pacman</em> can be downloaded). In other words,
+it should not be difficult to generate your own customized <em>larch</em>
+CD on pretty well any <em>GNU/Linux</em> system.
+But I must admit that this feature hasn't been tested much.
+</p>
+
+<p>As with most stuff around <em>Arch Linux</em>
+it's not really designed for beginners - you should know your
+way around a <em>GNU/Linux</em> system (preferably <em>Arch</em>!), and have at least a
+minimal idea of running command-line stuff and editing configuration
+files. In any case, I hope that the
+documentation will be clear enough to help anyone who wants to exploit
+<em>larch</em> to the full (feedback is welcome!).</p>
+
+<p><b>Requirement:</b>
+You need quite a lot of space to create an <em>Arch Linux</em> live CD system - to build a
+700MB CD image you'll need up to about 4GB. That is because a complete <em>Arch Linux</em>
+system is installed, then a compressed ('squashed') verion is made, and then
+a CD image (iso). Building for a USB-stick requires slightly less space, as the
+iso-image is not built.
+</p>
+
+<br /><br />
+
+<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
+ <tbody>
+ <tr>
+
+ <td><a href="larch_docindex.html">Table of Contents</a></td>
+
+ <td><a href="larch_features.html">Next: Features</a></td>
+
+ </tr>
+ </tbody>
+</table>
+
+</body>
+</html>
diff --git a/build_tools/clarch/larch/docs/html/larch1.jpg b/build_tools/clarch/larch/docs/html/larch1.jpg
new file mode 100644
index 0000000..70e2f56
--- /dev/null
+++ b/build_tools/clarch/larch/docs/html/larch1.jpg
Binary files differ
diff --git a/build_tools/clarch/larch/docs/html/larch_docindex.html b/build_tools/clarch/larch/docs/html/larch_docindex.html
new file mode 100644
index 0000000..0654d69
--- /dev/null
+++ b/build_tools/clarch/larch/docs/html/larch_docindex.html
@@ -0,0 +1,126 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+
+<head>
+ <meta content="text/html;charset=UTF-8" http-equiv="Content-Type" />
+ <title>larch documentation</title>
+ <meta content="gradgrind" name="author" />
+</head>
+
+<body>
+
+<br />
+
+<h1><big>larch</big>
+&ndash;
+a do-it-yourself live <em>Arch Linux</em> CD</h1>
+
+<img style="border: 0px solid ; width: 320px; height: 320px;" alt="" src="larch1.jpg"
+ name="graphics1" align="right" hspace="10" vspace="10" />
+<br /><br />
+
+<h2>Table Of Contents</h2>
+
+<p>This documentation covers <em>larch</em> version 5.3
+</p>
+
+<ol>
+ <li><a href="larch_intro.html">Introduction</a><br /><br /></li>
+
+ <li><a href="larch_features.html">Features</a><br /><br /></li>
+
+ <li><a href="larch_quick.html">Quick Start</a><br /><br /></li>
+
+ <li><a href="larch_overview.html"><em>larch</em> Overview</a>
+ <ul>
+ <li><a href="larch_overview.html#larch_installation">Installation
+ of the <em>larch</em> build system</a></li>
+
+ <li><a href="larch_overview.html#larch_using">Using
+ the <em>larch</em> build system</a></li>
+
+ <li><a href="larch_overview.html#running_mklarch">Quick <em>mklarch</em> overview</a></li>
+
+ <li><a href="larch_overview.html#running_larchify">Quick <em>larchify</em> overview</a></li>
+
+ <li><a href="larch_overview.html#Minimal_build_system_requirements">Minimal
+build system requirements</a></li>
+
+ <li><a href="larch_overview.html#pacman_conf">'pacman.conf' for building and live system use</a></li>
+
+ <li><a href="larch_overview.html#Squashfs_and_Unionfs">squashfs and aufs</a></li>
+
+ <li><a href="larch_overview.html#aufs">aufs as an alternative to unionfs</a></li>
+
+ <li><a href="larch_overview.html#Partial_rebuilding">Partial rebuilding</a></li>
+
+ <li><a href="larch_overview.html#Custom_packages">Custom packages</a></li>
+
+ <li><a href="larch_overview.html#Generating_the_basepacks_list">Generating
+the basepacks list</a></li>
+
+ <li><a href="larch_overview.html#addedpacks">addedpacks</a></li>
+
+ <li><a href="larch_overview.html#Installation">Installation
+of the "pristine" system</a></li>
+
+ <li><a href="larch_overview.html#existingSystem">Making a live CD from an
+ existing Arch installation</a></li>
+ </ul><br />
+ </li>
+
+ <li><a href="larch_profiles.html">Profiles</a>
+ <ul>
+ <li><a href="larch_profiles.html#xpack"><em>xpack</em> and non-root owned overlay files</a></li>
+ </ul><br />
+ </li>
+
+ <li><a href="larch_live_system.html">Structure of a <em>larch</em> live CD</a>
+ <ul>
+ <li><a href="larch_live_system.html#Squashfs_and_Unionfs">squashfs and aufs</a></li>
+
+ <li><a href="larch_live_system.html#initramfs">initramfs and mkinitcpio</a></li>
+
+ <li><a href="larch_live_system.html#rc_files">/etc/inittab, /etc/rc.sysinit and /etc/rc.shutdown</a></li>
+ </ul><br />
+ </li>
+
+ <li><a href="larch_fstab.html">/etc/fstab</a>
+ <ul>
+ <li><a href="larch_fstab.html#lvm">LVM</a></li>
+ </ul><br />
+ </li>
+
+ <li><a href="larch_sessionsave.html">Session saving</a>
+ <ul>
+ <li><a href="larch_sessionsave.html#overlays">Overlay archives, overlay.ovl and mods.sqf</a></li>
+
+ <li><a href="larch_sessionsave.html#var_files">Special places in /var</a></li>
+
+ <li><a href="larch_sessionsave.html#upd_packages">Updating packages</a></li>
+
+ <li><a href="larch_sessionsave.html#de-Act">Activating and deactivating the session-saving feature</a></li>
+
+ <li><a href="larch_sessionsave.html#custom">Customizing the behaviour using scripts</a></li>
+ </ul><br />
+
+ <li><a href="larch_ssh.html">ssh access</a>
+ <ul>
+ <li><a href="larch_ssh.html#ssh_x11">ssh and X11</a></li>
+ </ul><br />
+ </li>
+
+ <li><a href="larch_running.html">Running the live system</a>
+ <ul>
+ <li><a href="larch_running.html#bootparm">Boot parameters</a></li>
+
+ <li><a href="larch_running.html#config">Configuration</a></li>
+
+ <li><a href="larch_running.html#install">Installation to hard disk</a></li>
+ </ul><br />
+ </li>
+
+</ol>
+
+</body>
+</html>
diff --git a/build_tools/clarch/larch/docs/html/larch_features.html b/build_tools/clarch/larch/docs/html/larch_features.html
new file mode 100644
index 0000000..23d1c35
--- /dev/null
+++ b/build_tools/clarch/larch/docs/html/larch_features.html
@@ -0,0 +1,137 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+ <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
+ <title>larch features</title>
+ <meta content="gradgrind" name="author">
+</head>
+
+<body>
+
+<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
+ <tbody>
+ <tr>
+
+ <td><a href="larch_intro.html">Previous: Introduction</a></td>
+
+ <td><a href="larch_docindex.html">Table of Contents</a></td>
+
+ <td><a href="larch_quick.html">Next: Quick Start</a></td>
+
+ </tr>
+ </tbody>
+</table>
+
+<br />
+
+<h1><big>larch</big>
+&ndash;
+a do-it-yourself live <em>Arch Linux</em> CD</h1>
+
+<img style="border: 0px solid ; width: 383px; height: 321px;" alt="" src="larch1.jpg"
+ name="graphics1" align="right" hspace="10" vspace="10" />
+<br /><br />
+
+<h2>Features</h2>
+
+<ul>
+
+ <li>
+ <p>Built from standard <em>Arch Linux</em> packages</p>
+ </li>
+
+ <li>
+ <p>Only minimal changes made to enable functioning as live CD, the
+system is essentially pure <em>Arch Linux</em></p>
+ </li>
+
+ <li>
+ <p>Can also build live USB-sticks</p>
+ </li>
+
+ <li>
+ <p>Can also build from existing <em>Arch</em> installation</p>
+ </li>
+
+ <li>
+ <p>Can use standard <em>Arch</em> kernel ('kernel26'), no kernel build necessary</p>
+ </li>
+
+ <li>
+ <p>Fully customizable package selection</p>
+ </li>
+
+ <li>
+ <p>Can use isolinux or GRUB bootloader</p>
+ </li>
+
+ <li>
+ <p>Automatic generation of /etc/fstab based on device detection;
+ can also detect LVM volumes (when configured to do so)</p>
+ </li>
+
+ <li>
+ <p>Does not require an <em>Arch Linux</em> system to build it, any modern <em>GNU/Linux</em> system should suffice</p>
+ </li>
+
+ <li>
+ <p>Can be used to install <em>Arch Linux</em> to hard disk - either the full live CD content
+or using ftp to install any desired packages in their latest versions</p>
+ </li>
+
+ <li>
+ <p>Uses latest udev-based hardware detection</p>
+ </li>
+
+ <li>
+ <p>Based on squashfs, aufs, initramfs (using standard Arch mkinitcpio)</p>
+ </li>
+
+ <li>
+ <p>Changes made during a session can be saved back to the boot medium
+ (assuming it is writable - USB-stick, hard-disk, etc.)</p>
+ </li>
+
+ <li>
+ <p>Full graphical system possible, e.g. with KDE, OpenOffice, GIMP, ...</p>
+ </li>
+
+ <li>
+ <p>Using ssh it's possible to run this CD/USB-stick on a system without
+monitor/keyboard - remote installation and rescue is also possible</p>
+ </li>
+
+ <li>
+ <p>Copy to RAM possible, using boot parameter ('c2r')</p>
+ </li>
+
+ <li>
+ <p>Optional use of existing swap partition ('swap' boot parameter)</p>
+ </li>
+
+ <li>
+ <p>Simple text configuration files</p>
+ </li>
+
+ <li>
+ <p>Extensive documentation</p>
+ </li>
+
+</ul>
+
+<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
+ <tbody>
+ <tr>
+
+ <td><a href="larch_intro.html">Previous: Introduction</a></td>
+
+ <td><a href="larch_docindex.html">Table of Contents</a></td>
+
+ <td><a href="larch_quick.html">Next: Quick Start</a></td>
+
+ </tr>
+ </tbody>
+</table>
+
+</body>
+</html>
diff --git a/build_tools/clarch/larch/docs/html/larch_fstab.html b/build_tools/clarch/larch/docs/html/larch_fstab.html
new file mode 100644
index 0000000..8589ccd
--- /dev/null
+++ b/build_tools/clarch/larch/docs/html/larch_fstab.html
@@ -0,0 +1,87 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+ <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
+ <title>/etc/fstab</title>
+ <meta content="gradgrind" name="author">
+</head>
+
+<body>
+
+<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
+ <tbody>
+ <tr>
+ <td><a href="larch_live_system.html">Previous: Live CD structure</a></td>
+
+ <td><a href="larch_docindex.html">Table of Contents</a></td>
+
+ <td><a href="larch_sessionsave.html">Next: Session saving</a></td>
+ </tr>
+ </tbody>
+</table>
+
+<br />
+
+<h1><big>larch</big>
+&ndash;
+a do-it-yourself live <em>Arch Linux</em> CD</h1>
+
+<img style="border: 0px solid ; width: 320px; height: 320px;" alt="" src="larch1.jpg"
+ name="graphics1" align="right" hspace="10" vspace="10" />
+<br /><br />
+
+<h2>/etc/fstab and mount points</h2>
+
+<p>The file /etc/fstab determines mount points for the various devices and partitions
+available in the system. This is of course different in every computer, so a live CD
+has to be pretty flexible here. <em>larch</em> handles this by regenerating this file
+each time it boots, basing the content on the devices it discovers in the present system.
+</p>
+
+<p>Disk partitions are not mounted automatically by <em>larch</em>, as one of the main
+purposes was to act as an installation CD - for partitioning and formatting the
+partitions must be unmounted. But each detected disk partition and CDROM device should
+get an entry in '/etc/fstab' and a corresponding mount point in '/mnt'. Thus they
+can be mounted using 'mount /mnt/DEVICE' (or by using, say, KwikDisk in KDE).
+</p>
+
+<p>It may however, under certain circumstances, be desirable to have a persistent
+'/etc/fstab'. This can be achieved by placing "#KEEP" (without the quotation marks)
+at the beginning of a line in '/etc/fstab'. This could be done when making the
+original CD by putting the desired '/etc/fstab' file in the <em>overlay</em>,
+or else - in the case of a rewritable boot medium (e.g. USB-stick) - by
+editing '/etc/fstab' while running the live system and then performing a session
+saving reboot.
+A new '/etc/fstab' (and the associated mount points in '/mnt') can be generated
+at any time while running <em>larch</em>, by executing '<strong>gen_fstab -l</strong>'.
+This might be useful after repartitioning, for example. When the '-l' option is
+omitted, no updates are made, but the proposed changes are saved to '/tmp/fstab'
+and '/tmp/mnt'.
+</p>
+
+<h4><a name="lvm"></a>LVM</h4>
+
+<p><em>larch</em> can also handle LVM volumes, including automatically
+generating entries in '/etc/fstab' and mount points in '/mnt'.
+This must however be enabled
+in '/etc/rc.conf' (e.g. by putting the required entries in 'rcconfx' in the
+<em>profile</em> used to build the <em>larch</em> system). USELVM="yes" must
+be set and the module 'dm-mod' must be loaded (this is done
+automatically when USELVM="yes" is set). The supplied 'mini2' and 'xmini' example
+profiles contains this feature, and can thus be taken as an example.
+</p>
+
+<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
+ <tbody>
+ <tr>
+ <td><a href="larch_live_system.html">Previous: Live CD structure</a></td>
+
+ <td><a href="larch_docindex.html">Table of Contents</a></td>
+
+ <td><a href="larch_sessionsave.html">Next: Session saving</a></td>
+ </tr>
+ </tbody>
+</table>
+
+</body>
+</html>
diff --git a/build_tools/clarch/larch/docs/html/larch_intro.html b/build_tools/clarch/larch/docs/html/larch_intro.html
new file mode 100644
index 0000000..8584186
--- /dev/null
+++ b/build_tools/clarch/larch/docs/html/larch_intro.html
@@ -0,0 +1,128 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+
+<head>
+ <meta content="text/html;charset=UTF-8" http-equiv="Content-Type" />
+ <title>larch introduction</title>
+ <meta content="gradgrind" name="author" />
+</head>
+
+<body>
+
+<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
+ <tbody>
+ <tr>
+ <td><a href="larch_docindex.html">Table of Contents</a></td>
+
+ <td><a href="larch_features.html">Next: Features</a></td>
+ </tr>
+ </tbody>
+</table>
+
+<br />
+
+<h1><big>larch</big> &ndash; a do-it-yourself live <em>Arch Linux</em> CD</h1>
+
+<img style="border: 0px solid ; width: 320px; height: 320px;" alt="" src="larch1.jpg"
+ name="graphics1" align="right" hspace="10" vspace="10" />
+<br /><br />
+
+<h2>Introduction</h2>
+
+<p><em>larch</em> is a collection of scripts designed around the creation and
+use of live CD/DVD/USB-stick versions of <em>Arch Linux</em>.
+</p>
+
+<p>One design aim was easy customization, so that even relatively inexperienced
+users could build personalized live CDs (etc.), containing whatever packages they
+wanted and with their own personal configurations. The resulting medium should
+also be usable for installation purposes, so that one has a customized
+<em>Arch Linux</em> installation/rescue medium. As the content can be chosen
+freely, a comfortable working environment is possible - in contrast to
+the rather Spartan standard <em>Arch</em> installation CD.
+</p>
+
+<p><em>larch</em> also offers a flexible approach to building your live media.
+You can use 'profiles' to determine what gets installed, and how it is
+configured. The advantage of this method is that all your specifications are
+kept together in a folder which can be used to rebuild the same or a similar
+system at a later date. Alternatively you can do a normal <em>Arch Linux</em>
+installation (if there is such a thing!) and then make a live medium from this.
+You can even 'livify' your existing installation (though it might be worth
+tidying it up a bit first ...).
+</p>
+
+<p><em>Squashfs</em> offers convenient compression of the data on the CD so that
+up to about 2 GB of code can be included on a 700 MB CD. <em>aufs</em> (a
+'unification' file system, originally based on <em>unionfs</em>) offers
+the ability to write to all directories even though
+the CDROM is read-only, which allows such fancy stuff as installation
+of new software packages to the running live system. Using <em>aufs</em>
+you could do, say, 'pacman -S fluxbox' and <em>fluxbox</em> would be
+installed. The limit to the amount of overwriting is determined by the size of
+the available memory.
+</p>
+
+<p>All this would normally be gone when you reboot as the changes are
+really only stored in memory. However, thanks to various technical wizardry, it
+is also possible (on suitable media) to save any changes you make while running
+the live system back to the medium on shutdown.
+</p>
+
+<p>Hardware detection is provided by the same <em>udev</em> approach as is used
+in a standard <em>Arch Linux</em> system.
+</p>
+
+<p>The <em>larch</em> project comprises several components. The scripts for
+building a larch live medium are in the <em>larch</em> package, which need not
+itself be installed in the live system, though it may be useful. Scripts and
+data for the live environment are provided in the <em>larch-live</em> package,
+which must be installed in the live system. There is also an optional installer
+(<em>larchin</em>, written in python and bash, with a <em>GTK</em> interface) which
+can install the live system to hard disk, providing a convenient way to install a
+ready-configured <em>Arch Linux</em> system.
+</p>
+
+<p>I have tried to maintain the distribution-independence of the
+<em>larch</em> scripts, so that they can be used on other <em>GNU/Linux</em> systems -
+you shouldn't need an <em>Arch Linux</em> installation in order to build a <em>larch</em>
+live medium, the dependencies (e.g. <em>bash</em>, <em>wget</em>,
+<em>mkisofs</em> ) should be satisfied on pretty well any <em>GNU/Linux</em> system
+(and a static version of <em>pacman</em> can be downloaded). In other words,
+it should not be difficult to generate your own customized <em>larch</em>
+CD on pretty well any <em>GNU/Linux</em> system.
+But I must admit that this feature hasn't been tested much.
+</p>
+
+<p>As with most stuff around <em>Arch Linux</em>
+it's not really designed for beginners - you should know your
+way around a <em>GNU/Linux</em> system (preferably <em>Arch</em>!), and have at least a
+minimal idea of running command-line stuff and editing configuration
+files. In any case, I hope that the
+documentation will be clear enough to help anyone who wants to exploit
+<em>larch</em> to the full (feedback is welcome!).</p>
+
+<p><b>Requirement:</b>
+You need quite a lot of space to create an <em>Arch Linux</em> live CD system - to build a
+700MB CD image you'll need up to about 4GB. That is because a complete <em>Arch Linux</em>
+system is installed, then a compressed ('squashed') verion is made, and then
+a CD image (iso). Building for a USB-stick requires slightly less space, as the
+iso-image is not built.
+</p>
+
+<br /><br />
+
+<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
+ <tbody>
+ <tr>
+
+ <td><a href="larch_docindex.html">Table of Contents</a></td>
+
+ <td><a href="larch_features.html">Next: Features</a></td>
+
+ </tr>
+ </tbody>
+</table>
+
+</body>
+</html>
diff --git a/build_tools/clarch/larch/docs/html/larch_live_system.html b/build_tools/clarch/larch/docs/html/larch_live_system.html
new file mode 100644
index 0000000..5cd6f40
--- /dev/null
+++ b/build_tools/clarch/larch/docs/html/larch_live_system.html
@@ -0,0 +1,155 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+ <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
+ <title>larch live system structure</title>
+ <meta content="gradgrind" name="author">
+</head>
+
+<body>
+
+<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
+ <tbody>
+ <tr>
+ <td><a href="larch_profiles.html">Previous: Profiles</a></td>
+
+ <td><a href="larch_docindex.html">Table of Contents</a></td>
+
+ <td><a href="larch_fstab.html">Next: /etc/fstab</a></td>
+ </tr>
+ </tbody>
+</table>
+
+<br />
+
+<h1><big>larch</big>
+&ndash;
+a do-it-yourself live <em>Arch Linux</em> CD</h1>
+
+<img style="border: 0px solid ; width: 320px; height: 320px;" alt="" src="larch1.jpg"
+ name="graphics1" align="right" hspace="10" vspace="10" />
+<br /><br />
+
+<h2>Structure of a <em>larch</em> live CD</h2>
+
+<p>The vast majority of the code that runs in a live CD/USB system is exactly
+the same as in a normal system running from hard disk.
+The main differences arise through the live CD/USB system being based on
+a read-only root file-system, so various adjustments are necessary to
+make the areas that must be writable appear to be so. I say 'appear to be'
+because in general any changes will be lost when the system shuts down,
+the actual changes being made only in a RAM-based filesystem (but see
+<a href="larch_sessionsave.html">"Session saving"</a>).
+</p>
+
+<h3><a name="Squashfs_and_Unionfs"></a>squashfs and aufs</h3>
+
+<p>In <em>larch</em>, as in many other live CD/USB systems, the ability to (apparently)
+write to a read-only file-system is provided by <em>aufs</em> (originally
+derived from <em>unionfs</em>).
+The file-system is also compressed, using <em>squashfs</em>, so as to fit more data
+onto the storage device (normally about 2GB of uncompressed code and data
+can be squeezed onto a 700MB CDROM using this approach). A custom
+<em>Arch Linux</em> installation (you can choose which packages are installed) is
+compressed into a <em>squashfs</em> file-system in the file
+<strong>system.sqf</strong>, which is placed in the root directory of the boot device.
+</p>
+
+<p>For use in a live CD/USB system a few changes must be made to some files in the
+installation. In <em>larch</em> this is (at first) not done directly, the installed
+system is left in a 'clean' state. Instead of that, an additional <em>union</em> layer
+is created, in the archive <strong>mods.sqf</strong>,
+containing all the modified files (except those in /etc, which are placed in the
+top, writable, <em>union</em> layer, which is saved in the <strong>overlay.ovl</strong> archive.
+The user is free to include (pretty well) any customizations (s)he wants in these
+overlay files. These files are also placed in the root directory of the boot device.
+</p>
+
+<p>These system archives are combined when the live CD/USB system
+boots. They are mounted as branches of a <em>union</em> file-system with
+the overlay above the 'standard' system, so that files in the overlay have
+priority over the original ones. The top layer of the <em>union</em> is a <em>tmpfs</em>
+writable layer (thus, effectively, making the whole system writable),
+into which the archive <strong>overlay.ovl</strong> is unpacked during booting.
+As the changes are only stored in RAM, they will, however, be lost when the system shuts
+down (unless using the <a href="larch_sessionsave.html">session saving</a> feature).
+</p>
+
+<h3><a name="initramfs"></a><em>initramfs</em> and <em>mkinitcpio</em></h3>
+
+<p>It is, in general, not possible to boot directly into a live CD/USB system.
+Some form of 'initrd' or 'initramfs' is required, in order to find the boot
+device, get hold of the file-system and prepare it for running.
+Many modern <em>GNU/Linux</em> systems use initrd/initramfs (the former being now deprecated)
+as a matter of course, for loading the necessary kernel modules, and
+<em>Arch Linux</em> is no exception, a modular initramfs system (<em>mkinitcpio</em>)
+being the standard way to boot <em>Arch Linux</em>, and <em>larch</em> also takes
+advantage of it, although some additions need to be made to boot live CD/USB systems.
+</p>
+
+<h3><a name="rc_files"></a>/etc/inittab, /etc/rc.sysinit and /etc/rc.shutdown</h3>
+
+<p>The initial boot script and the shutdown script must be customized for use
+in a larch live environment. There are numerous ways of achieving that and
+<em>larch</em> has tried out several. In version 5.3.2 a method was introduced which
+involves replacing the original /etc/rc.sysinit and /etc/rc.shutdown scripts
+by modified versions which are fully equivalent to the official scripts but
+split off certain parts into functions which can be overridden when used in a
+<em>larch</em> live system. The 'larch-live' package provides the files
+/etc/larch-sysinit and /etc/larch-shutdown which provide the new versions
+of these functions for live use.
+<p>The need to overwrite certain system files is a bit messy, and means that
+the initscripts package should not be updated in the live system, but I
+hope the official package will sometime itself contain suitable versions of the
+'/etc/rc.sysinit' and '/etc/rc.shutdown' files which separate out the
+relevant functions so that larch doesn't need to overwrite them.
+</p>
+<p>Although it is not strictly necessary (because the substituted files are
+fully equivalent to the official ones), larch saves the originals as
+'/etc/rc.sysinit.larchsave' and '/etc/rc.shutdown.larchsave', so that these
+can be restored on installation by <em>larchin</em> (this might avoid later
+confusion).
+</p>
+
+<p>It is possible to use a customized version of '/etc/inittab', by
+putting the new version in the <em>profile</em> (in 'rootoverlay') - for
+example one could customize the handling of the first terminal, e.g. to
+allow automatic login.
+The original <em>inittab</em> is saved as '/etc/inittab.larchsave',
+so that it can be restored if the system is installed using <em>larchin</em>.
+</p>
+
+<p>One addition in the <em>larch</em> version of the initscripts is the
+automatic generation of a new '/etc/fstab' (using the script
+<strong>gen_fstab</strong>, which
+bases the result on the devices which are detected in the system). Otherwise
+it behaves much the same as the version in
+a normal <em>Arch Linux</em> system. However, the remount of the root-filessystem and
+file-system checks have been left out as they are not relevant in a live-CD
+environment. No partitions are mounted and, by default, swap is not enabled.
+The reason is primarily that for use as an installation CD, it is better not
+to have any partitions mounted, because it is quite likely that the partitions
+will be edited in preparation for the installation. Passing boot parameter
+'swap' will enable swap if there is a suitable partition (or it can be done
+manually using 'swapon -a').
+</p>
+
+<p>'/etc/rc.shutdown' is adapted by
+adding code to deal with session-saving (writing changes back to the boot medium)
+and to eject the live-CD. Unlike in the normal version, the hardware clock is not reset.
+</p>
+
+<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
+ <tbody>
+ <tr>
+ <td><a href="larch_profiles.html">Previous: Profiles</a></td>
+
+ <td><a href="larch_docindex.html">Table of Contents</a></td>
+
+ <td><a href="larch_fstab.html">Next: /etc/fstab</a></td>
+ </tr>
+ </tbody>
+</table>
+
+</body>
+</html>
diff --git a/build_tools/clarch/larch/docs/html/larch_overview.html b/build_tools/clarch/larch/docs/html/larch_overview.html
new file mode 100644
index 0000000..3bf38fb
--- /dev/null
+++ b/build_tools/clarch/larch/docs/html/larch_overview.html
@@ -0,0 +1,383 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+ <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
+ <title>larch overview</title>
+ <meta content="gradgrind" name="author">
+</head>
+
+<body>
+<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
+ <tbody>
+ <tr>
+ <td><a href="larch_quick.html">Previous: Quick start</a></td>
+
+ <td><a href="larch_docindex.html">Table of Contents</a></td>
+
+ <td><a href="larch_profiles.html">Next: Profiles</a></td>
+ </tr>
+ </tbody>
+</table>
+
+<br />
+
+<h1><big>larch</big>
+&ndash;
+a do-it-yourself live <em>Arch Linux</em> CD</h1>
+
+<img style="border: 0px solid ; width: 320px; height: 320px;" alt="" src="larch1.jpg"
+ name="graphics1" align="right" hspace="10" vspace="10" />
+<br /><br />
+
+<h2>Overview of the <em>larch</em> build system</h2>
+<br />
+
+<blockquote>
+<h3>Warning</h3>
+
+<p><em>Before we get started I should point out that most of the scripts need to
+be run by the 'root' user. That is quite normal for an installer, but it is somewhat
+risky - a slight slip and all sorts of damage could be done. Ideally you would
+have a machine specially set aside for this sort of thing, i.e. one without any
+important data on it. <strong>You have been warned!</strong></em>
+</p>
+</blockquote>
+
+<h3><a name="larch_installation"></a>Installation of the <em>larch</em> build system</h3>
+
+<p>The <em>larch</em> package may be installed in the normal <em>Arch Linux</em> way using
+<em>pacman</em>. This method will only work on an <em>Arch</em> system, of course.
+</p>
+
+<p>Alternatively, <em>larch</em> may be used without installing it.
+This should also work on non-<em>Arch Linux</em> systems. Download
+<a href="ftp://ftp.berlios.de/pub/larch/larch5.3/i686/larch-setup"><strong>larch-setup</strong></a>
+to an empty working directory and run it (it is a shell script). This will in
+turn download and unpack the current larch package, setting up symlinks so that
+the build scripts can be run from this working directory.
+If you don't put this new directory on your 'PATH', you may well
+need to add a path prefix when running it (e.g. './mklarch' if your current
+directory is the one containing the script).
+</p>
+
+<h3><a name="larch_using"></a>Using the <em>larch</em> build system</h3>
+
+<p>For building a live medium from a 'profile' you need, primarily, <strong>mklarch</strong>;
+for building from an existing installation (including rebuilding after using
+<strong>mklarch</strong>) <strong>larchify</strong>. <strong>mklarch</strong>
+uses <strong>inpacs</strong> to do the actual installation of the packages,
+and the functions for performing the live CD creation are in the file
+(larch/)<strong>buildlive</strong>.
+</p>
+
+<p>Unlike a normal installation, that used by larch need not be a separate partition,
+it can be placed anywhere convenient.
+The default installation directory ('/home/larchroot', variable 'INSTLDIR' in the scripts)
+should normally be acceptable (the building work is done in the '.larch' sub-directory).
+Note that lots of space is necessary in ${INSTLDIR}, nearly 4GB for a 700MB CD.
+</p>
+
+<h3><a name="running_mklarch"></a>Quick <strong>mklarch</strong> overview</h3>
+
+<p>That first stage is very much like a normal <em>Arch</em> installation to a
+partition - which is another possibility with the <strong>inpacs</strong> script.
+A couple of small tweaks are made to this base installation to make it more
+convenient for live CD/USB use: some glibc locales are generated (set by the file
+locale.gen in the profile) and, if <em>openssh</em> is installed, the initial
+ssh-keys are generated.
+</p>
+
+<p>Before <strong>mklarch</strong> can be used a 'profile' for the live medium must
+be built. This is a folder containing configuration files determining which packages
+are installed, which glibc locales are installed, and generally which files should
+be customized. Further details are given in <a href="larch_profiles.html">'Profiles'</a>.
+</p>
+
+<p>A simple way to build an iso would then be:
+<pre style="margin-left: 80px;">./mklarch -p myprofile</pre>
+</p>
+
+<p>To build a live USB-stick using GRUB to boot and using the <em>pacman</em>
+databases as they exist on the build host (rather than the default of
+downloading the latest databases using 'pacman -Sy'):
+<pre style="margin-left: 80px;">./mklarch -p myprofile -y /var/lib/pacman -ug</pre>
+</p>
+
+<p>The build process can be stopped after the <em>Arch</em> system installation (before building
+the 'squashed' live system) by passing the '-a' option to <strong>mklarch</strong>.
+All the available options can be seen by running 'mklarch -h'.
+</p>
+
+<p>The rest of the build process is handled by the functions in
+<strong>buildlive</strong>, primarily <em>mklive</em>,
+which puts all the various components together into a CD image at
+'${INSTLDIR}/.larch/cd', then using the <em>build_iso</em> function
+to create the iso or (using the <strong>usbboot</strong> script) to prepare
+a bootable USB-stick.
+</p>
+
+<p>If you set up your configuration
+wrong (or if you or I made some other mistake ...), you might find
+you have destroyed some important data and/or your system doesn't
+work any more. But that's life - Share and Enjoy!
+</p>
+
+<h3><a name="running_larchify"></a>Quick <em>larchify</em> overview</h3>
+
+<p><strong>larchify</strong> uses the functions in <strong>buildlive</strong> to
+build a live medium from an existing <em>Arch Linux</em> installation. It can also be
+used to rebuild a (posibly altered) live medium from the installation arising
+from the use of <strong>mklarch</strong>. For example, after building an iso
+using <strong>mklarch</strong>, you might want to build another with the same packages
+but with a changed overlay - maybe an alteration to rc.conf. In that case you
+could make the necessary changes to the profile and call:
+<pre style="margin-left: 80px;">./larchify -rp myprofile</pre>
+The '-r' option causes the old squashed image to be used, which can save a lot
+time. To see all the options run './larchify -h'.
+</p>
+
+<h3><a name="Minimal_build_system_requirements"></a>Minimal build system requirements</h3>
+
+<p>The <em>larch</em> scripts have been designed to work without heavy
+demands on the build system. Although they have been developed under <em>Arch Linux</em>,
+they should run on other <em>GNU/Linux</em> systems. The required software has been
+kept to a minimum by means of a sort of bootstrapping - some of the build
+functions are carried out on the newly installed <em>Arch</em> system using <em>chroot</em>.
+For example, you do not need support for <em>squashfs</em> or <em>aufs</em> on
+the build system. <em>bash</em>, <em>mkisofs</em> and <em>wget</em>
+are assumed to be available (for building a USB-stick version with syslinux you
+also need <em>mkfs.vfat</em> from the 'dosfstools' package). If you are not
+running <em>Arch Linux</em>, the installation script
+(<strong>larch-setup</strong>) will set up pacman using a special package
+available from the larch repository (pacman-packed.tar.gz), which contains
+in addition to the pacman binary the run-time libraries it needs.
+</p>
+
+<h3><a name="pacman_conf"></a>'pacman.conf' for building and live system use</h3>
+
+<p>You also need an appropriate 'pacman.conf' file. On a non-<em>Arch</em> system,
+unless a pacman.conf is already present in the working directory, this will be
+created afresh and a dialog will be presented by <strong>larch-setup</strong>
+to select a mirror. Because of potential overwriting (see below) this file
+is also copied to pacman.conf.0 (also in the working directory).
+</p>
+<p>On an <em>Arch</em> system it is assumed that you have already configured your
+mirrors appropriately, and the system '/etc/pacman.conf' can be taken.
+</p>
+<p>When there is a 'pacman.conf' in the profile (base directory, not overlay),
+this will be copied to the working directory and used by <em>mklarch</em>
+for performing the installation, even if
+there was already a version in the working directory. The 'pacman.conf' in
+the resulting live system will also be this version if built using
+<em>mklarch</em> (i.e. taken from the resulting file in the working
+directory). If <em>larchify</em> is used the existing '/etc/pacman.conf'
+within the system to be larchified will be used. However, if the overlay in
+the profile has its own '/etc/pacman.conf' this will (in both cases) be
+used in preference.
+</p>
+<p>Additionally, an 'IgnorePkg' line is added to the live system's '/etc/pacman.conf',
+for 'kernel26', 'aufs' and 'initscripts'. Packages listed in the 'noupdate' file
+in the profile, will also be added.
+This line will be removed on installation using <em>larchin</em>.
+</p>
+
+<h3><a name="Squashfs_and_Unionfs"></a>squashfs and aufs</h3>
+
+<p>The newly installed system is made into a <em>squashed</em> file-system in the
+file <strong>system.sqf</strong>. This is mounted as the lower layer of a <em>union</em>
+(<em>aufs</em>) file-system. On top of that there is a writable
+<em>tmpfs</em> so that the file-system as a whole appears writable. An 'overlay'
+archive is copied into the writable layer. As this top layer is compressed using
+<em>lsop</em>, this package must be installed in the target.
+Of course only the <em>tmpfs</em> top layer can actually be written to,
+and its contents disappear when the system reboots, so the writing is only
+temporary.
+</p>
+
+<p>There is also a second overlay archive, a squashed file system which forms
+the middle layer of the union file-system, which increases the flexibillity of
+the session saving facility.
+</p>
+
+<p>In order to boot into a system constructed in that manner, you need an
+<em>initramfs</em> which deals with mounting all the various bits in the right
+way before entering the normal boot sequence. In <em>larch</em> the
+<em>initramfs</em> is built using the standard <em>Arch</em> 'mkinitcpio' system, for
+which special 'hooks' (essentially code plug-ins) have been developed to
+manage the requirements of a <em>larch</em> live system.
+</p>
+
+<h4><a name="aufs"></a>aufs as an alternative to unionfs</h4>
+<p><em>larch</em> was initially designed around <em>unionfs</em>, but since then
+<em>aufs</em> has been generally a more reliable alternative, and is now
+available as a package in <em>Arch Linux</em>. In order to use <em>aufs</em> its
+kernel module needs to be installed (which, if using <em>mklarch</em>, can be
+achieved by placing package 'aufs' in <strong>addedpacks</strong>), the rest
+will then be handled automatically. <strong>N.B.</strong> As <em>unionfs</em>
+hasn't been tested for a long time (all development work is done using
+<em>aufs</em>) and the current 'overlay merge' only works with <em>aufs</em>,
+it is strongly recommended that <em>aufs</em> be used.
+</p>
+
+<h3><a name="Partial_rebuilding"></a>Partial rebuilding</h3>
+
+<p>If you make some changes to a build which don't require a renewed
+installation (the <em>Arch</em> installation in '${INSTLDIR}'), you can use the
+<strong>larchify</strong> script to rebuild the system. Such changes might
+be tweaks to the overlay, or 'rcconfx', for example (but note that the glibc
+locales are in the installation so if you want to change these, you have to rerun the
+whole installation, or handle that manually). If - as is likely - the squashed system
+from the previous build is still there and is still valid,
+this can be reused by passing the '-r' option (thus saving the time required to
+squash the system).
+</p>
+
+<p> If you only make changes to files in '${INSTLDIR}/.larch/cd', you can rebuild
+the iso using the '-i' option to <strong>larchify</strong>. But be aware that
+some of the files in the directories 'isolinux' (when using the
+<em>isolinux</em> bootloader) and 'boot' (when using the <em>GRUB</em> bootloader)
+are renewed from 'larch/cd-root' and the 'cd-root' directory in the profile.
+</p>
+
+<p><em><strong>N.B.</strong> Even though the <em>Arch</em> installation is
+in principle now redundant, you shouldn't delete it if you want to do a quick
+rebuild using <strong>larchify</strong>, because this installation is used (via 'chroot')
+for some of the build functions.</em>
+</p>
+
+<h3><a name="Custom_packages"></a>Custom packages</h3>
+
+<p>It is possible to include your own 'custom' packages in the installation.
+Maybe ones you have compiled yourself, e.g. from the AUR, or modified versions
+(fixes or customizations) of standard packages. To do this you need to put your
+packages in a directory and run <strong>gen-repo</strong> - which requires python -
+on this directory (run it without arguments to get usage instructions). Then place
+an entry for this new repository in your 'pacman.conf' (in the profile or else
+in the working directory).
+If your packages replace some in the existing repositories, your custom
+repository needs to come before those repositories in 'pacman.conf'.
+Any packages you want installed now just need to be
+listed in <strong>addedpacks</strong>.
+</p>
+
+<p>It is not necessary to build a custom kernel for <em>larch</em>, the
+standard kernel ('kernel26') can be used. It includes <em>unionfs</em>
+and <em>squashfs</em> modules, and is now included in the set of 'base'
+packages. If <em>aufs</em> is desired (which is likely, as at the time of writing,
+<em>unionfs</em> didn't work very well), this must be included in
+<strong>addedpacks</strong>.
+</p>
+
+<h3><a name="Generating_the_basepacks_list"></a>Generating
+the <em>basepacks</em> list</h3>
+
+<p>In case the base package set changes, <strong>inpacs</strong> uses the list
+provided by 'pacman -Sg base' by default. However, if there is a 'basepacks'
+file in the profile this will be used to supply the list of base packages
+(one package per line).
+</p>
+
+<p><strong>inpacs</strong> can also be used separately for <em>Arch</em> installation.
+To get a full listing of possible options run it without arguments (note that
+it pays no attention to profiles, all options must be passed explicitly).
+</p>
+
+<p>It is possible to filter out certain unwanted packages from the base set.
+In most cases the default setting will be satisfactory, but you can change it by
+placing a 'baseveto' file (one package per line) in the profile directory.
+Be aware, however, that vetoed packages will be installed anyway if they are
+required by some other installed package.
+</p>
+
+<h3><a name="addedpacks"></a><em>addedpacks</em></h3>
+
+<p>This group of packages is the main place for defining your system.
+Here you can enter all the applications you would like in your live CD/USB system
+(and subsequently installed to a hard disk partition, if that was your intention).
+Thanks to <i>pacman</i> you don't need to sort out dependencies,
+these should all be included automatically. It is (still) possible to
+squeeze (or rather 'squash') quite a respectable quantity of software
+onto a CD - my first experiments included most of <i>KDE</i>,
+<i>OpenOffice</i>, <i>K3b</i>, <i>GIMP</i>, and quite a lot
+besides.</p>
+
+<h3><a name="Installation"></a>Installation of the initial system</h3>
+
+<p>The foundation of the <em>larch</em> live CD/USB system is an initial,
+potentially unconfigured <em>Arch Linux</em> system <em>squashed</em> up in the file
+'system.sqf'. The installation of this system is can be handled by <em>mklarch</em>,
+which uses <em>inpacs</em>, which in turn uses <em>pacman</em> to
+install all the constituent packages using
+the '-r' option to install to the chosen location, which can be anywhere where
+there is enough space.</p>
+
+<p>By default the package cache on the build host will be used, so that only
+packages which have not already been downloaded will be fetched from the
+chosen mirror. The '-c' option to <strong>mklarch</strong> allows another
+cache location to be used. Note that this can also be on a remote machine,
+mounted using <em>sshfs</em> or <em>NFS</em>.
+</p>
+
+<h3><a name="existingSystem"></a>Making a live CD from an existing <em>Arch</em>
+installation</h3>
+
+<p>As mentioned above, <strong>larchify</strong> can be used to make a live
+medium from an existing <em>Arch</em> installation, using the mount point of the
+installation as argument. The installation must already be mounted, including any
+sub-mounts (e.g. /home on another partition). The main mount must be with
+options 'exec,dev', because some of the building is done via a <em>chroot</em>
+to the installation.
+</p>
+
+<p>It can also 'livify' the currently running (<em>Arch</em> only!) system, by
+passing '/' as argument.
+</p>
+
+<p>All aspects of the larch building process connected with the installation
+are in this case irrelevant, as it is assumed that the installation is already complete.
+The handling of 'profiles' is also different as these are largely
+concerned with the installation process. A profile may still be used, though,
+maybe to customize the 'mkinitcpio.conf' used to build the live system's
+<em>initramfs</em>, or to add extra content by means of the <strong>cd-root</strong>
+folder, for example.
+</p>
+
+<p>In order to support building a <em>larch</em> system, certain packages outside
+the <em>Arch</em> base group must be installed in the system to be 'larchified':
+<pre style="margin-left: 80px;"><em>squashfs-tools</em>, <em>lzop</em>, <em>larch-live</em>,
+<em>aufs</em> (if - recommended - you want to use that instead of <em>unionfs</em>),
+<em>syslinux</em> (if using isolinux or syslinux),
+<em>cdrkit</em> (for building an iso),
+<em>eject</em> (to eject a CD at shutdown).
+
+for the hard-disk installer - <em>larchin</em>, <em>python</em>, <em>pygtk</em>,
+<em>parted</em>, <em>ntfsprogs</em>,
+(optional, but recommended) <em>gparted</em>.
+
+for this documentation, and for the capability of doing complete
+rebuilds - <em>larch</em>
+</pre>
+</p>
+
+<p>Note that some things in '/var' will not be included in the 'live' system.
+Firstly, the standard <em>pacman</em> package cache, '/var/cache/pacman/pkg'.
+Also the log files (in '/var/log') and '/var/tmp' (temporary files, like '/tmp')
+are not saved. As some files in '/var/log' are required for certain aspects of
+logging to function, these are recreated (as empty files) in the resulting
+'system.sqf'.
+</p>
+
+<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
+ <tbody>
+ <tr>
+ <td><a href="larch_quick.html">Previous: Quick start</a></td>
+
+ <td><a href="larch_docindex.html">Table of Contents</a></td>
+
+ <td><a href="larch_profiles.html">Next: Profiles</a></td>
+ </tr>
+ </tbody>
+</table>
+
+</body>
+</html>
diff --git a/build_tools/clarch/larch/docs/html/larch_profiles.html b/build_tools/clarch/larch/docs/html/larch_profiles.html
new file mode 100644
index 0000000..68db618
--- /dev/null
+++ b/build_tools/clarch/larch/docs/html/larch_profiles.html
@@ -0,0 +1,167 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+ <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
+ <title>larch profiles</title>
+ <meta content="gradgrind" name="author">
+</head>
+
+<body>
+<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
+ <tbody>
+ <tr>
+ <td><a href="larch_overview.html">Previous: Overview</a></td>
+
+ <td><a href="larch_docindex.html">Table of Contents</a></td>
+
+ <td><a href="larch_live_system.html">Next: Live CD structure</a></td>
+ </tr>
+ </tbody>
+</table>
+
+<br />
+
+<h1><big>larch</big>
+&ndash;
+a do-it-yourself live <em>Arch Linu</em>x CD</h1>
+
+
+<img style="border: 0px solid ; width: 320px; height: 320px;" alt="" src="larch1.jpg"
+ name="graphics1" align="right" hspace="10" vspace="10" />
+<br /><br />
+
+<h2>Profiles</h2>
+
+<p>This feature of the <em>larch</em> scripts allows bundling
+all the configuration information for a particular live CD 'design' into
+a single directory. That includes the list of packages to be installed, locale
+information and the particular tweaks and additions needed to customize the CD,
+in particular a subdirectory containing the 'overlay' files - those files
+which have been changed from their initial fresh state after installation
+and those which have simply been added.
+</p>
+
+<p>In order to allow more flexibility with the overlay, <em>larch</em> now
+provides two mechanisms for providing overlay files. The simplest is by
+means of the directory 'rootoverlay' - everything in this directory will be
+copied to the live system overlay and its ownership will be changed to
+'root:root'. In case it is desired to include files with other ownerships,
+these must be packed up with the correct ownerships into the file 'overlay.xpk'
+using the <em>xpack</em> packing utility (supplied with <em>larch</em>, see
+below). This requires some care, but is a little safer than, say, a 'tar.gz'
+archive because it has an option to pack so that only root can unpack the
+archive.
+In general however the 'rootoverlay' directory should be adequate, and
+much of the tweaking may be done <em>in situ</em> (i.e. within a running
+live USB system), using a utility - see
+<a href="larch_sessionsave.html">'Session saving'</a> - to recreate
+the compressed overlay file-system (<strong>overlay.ovl</strong>).
+</p>
+
+<p>If you would like to have a look at a profile, look in the 'profiles'
+directory in the distribution. Each of its subdirectories is a profile, the
+subdirectory name is also the profile name. If you want to make your own
+profile, it is probably easiest to start with one of the examples. Copy it to a
+working directory and rename it appropriately.
+</p>
+
+<p>After editing to your heart's content, you can build the corresponding live
+CD system with the call:
+<pre>
+ (path/to/)mklarch -p directory
+</pre>
+where 'directory' is your profile directory.
+</p>
+
+<p>The important files within a profile are described below:
+</p>
+<ul>
+ <li><strong>addedpacks</strong> - a simple list of packages (just package
+ name as supplied to 'pacman -S', e.g. 'syslinux', not the file name), one per line,
+ comment lines start with '#'.
+ This is the primary place for configuring which packages are installed.
+ </li>
+
+ <li><strong>locale.gen</strong> - <em>mklarch</em> prefixes this profile
+ file (if it is present) to the file '/etc/locale.gen' in the newly installed
+ system and runs 'locale-gen' (using <em>chroot</em>) to deal with glibc
+ locale generation.
+ So just put the locales you want in here.
+ </li>
+
+ <li><strong>rcconfx</strong> - This is a list of modifications for '/etc/rc.conf'.
+ It contains those variable definitions which are different to the default
+ values. This is then merged with the original to produce a modified overlay file.
+ </li>
+
+ <li><strong>rootoverlay</strong> - The files in this directory are effectively
+ copied on top of the original system - as an overlay. They (potentially)
+ form the bulk of the customization for the live system.
+ </li>
+
+ <li><strong>overlay.xpk</strong> - As described above this is a self-extracting
+ archive of 'overlay files', which can be used as an alternative to 'rootoverlay'
+ for non-root owned files.
+ </li>
+
+ <li><strong>mkinitcpio.conf</strong> - This file is optional. If it is present it will
+ replace the version in the 'lib/initcpio' folder of the
+ <em>larch-live</em> package to produce the initramfs
+ for the live CD. You should take that file as the starting point to ensure that
+ the necessary larch hooks are installed, but you are free to change other hooks
+ (e.g. use 'ide' instead of 'pata') or add modules.
+ </li>
+
+ <li><strong>basepacks</strong> - This file is optional. If it is present it
+ supplies a list of packages (one package per line, as <em>addedpacks</em>) to be
+ used instead of the standard list of 'core/base' packages for the basis of the
+ installation done by <em>mklarch</em>, preventing the 'packages.txt' file from the
+ 'core' repository from being downloaded and used as source for the base package list.
+ </li>
+
+ <li><strong>baseveto</strong> - This file is optional. It provides a list of
+ packages (one package per line) to be ignored in the base package list.</li>
+
+ <li><strong>cd-root</strong> - This directory contains files to configure the bootloader.
+ Those for <em>isolinux</em> are in the directory 'isolinux', which is copied to the
+ root CD directory when the <em>isolinux</em> bootloader is chosen. Those for
+ <em>GRUB</em> are in the directory 'boot', which is copied to the
+ root CD directory when the <em>GRUB</em> bootloader is chosen. Here you can
+ configure things like boot menus and splash screens.
+ Anything in the 'cd-root' folder will be copied directly to the root of the live medium, so
+ if there is anything else you want on your medium, you can put it in here.
+ </li>
+</ul>
+
+<h3><a name="xpack"></a><em>xpack</em> and non-root owned overlay files</h3>
+To include non 'root:root' owned files in an overlay, create a directory
+somewhere called 'overlay' and place all the desired files therein with the
+correct paths, ownerships and permissions. Then run
+<pre>
+ xpath -r overlay overlay.xpk
+</pre>
+(from within the directory containing 'overlay'). The resulting 'overlay.xpk'
+file should then be placed in your profile directory.
+If you want to unpack such an overlay archive, you need to be root, go to the
+directory containing it and run
+<pre>
+ ./overlay.xpk .
+</pre>
+(don't miss the final '.', the unpacker needs an existing
+directory as parameter).
+</p>
+
+<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
+ <tbody>
+ <tr>
+ <td><a href="larch_overview.html">Previous: Overview</a></td>
+
+ <td><a href="larch_docindex.html">Table of Contents</a></td>
+
+ <td><a href="larch_live_system.html">Next: Live CD structure</a></td>
+ </tr>
+ </tbody>
+</table>
+
+</body>
+</html>
diff --git a/build_tools/clarch/larch/docs/html/larch_quick.html b/build_tools/clarch/larch/docs/html/larch_quick.html
new file mode 100644
index 0000000..4500f5d
--- /dev/null
+++ b/build_tools/clarch/larch/docs/html/larch_quick.html
@@ -0,0 +1,108 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+ <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
+ <title>larch quick start</title>
+ <meta content="gradgrind" name="author">
+</head>
+
+<body>
+
+<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
+ <tbody>
+ <tr>
+ <td><a href="larch_features.html">Previous: Features</a></td>
+
+ <td><a href="larch_docindex.html">Table of Contents</a></td>
+
+ <td><a href="larch_overview.html">Next: Larch Overview</a></td>
+ </tr>
+ </tbody>
+</table>
+
+<br />
+
+<h1><big>larch</big>
+&ndash;
+a do-it-yourself live <em>Arch Linux</em> CD</h1>
+
+<img style="border: 0px solid ; width: 320px; height: 320px;" alt="" src="larch1.jpg"
+ name="graphics1" align="right" hspace="10" vspace="10" />
+<br /><br />
+
+<h2>Quick Start</h2>
+
+<br /><br />
+
+<p>A quick run through of the steps necessary to build your own <em>larch</em> CD.
+This should provide you with a working live CD, but to take full advantage of
+the flexibility offered by the <em>larch</em> build system you will probably need
+to consult the rest of the documentation.</p>
+
+<ul>
+ <li>At present there is only a repository for 'i686',
+ as I don't have a 64-bit machine (but testers are welcome to build their own
+ repository from svn - a simple script is provided).
+ </li>
+ <li>Download <a href="ftp://ftp.berlios.de/pub/larch/larch5.3/i686/larch-setup"><strong>larch-setup</strong></a>
+ to an empty working directory and run it (it is a shell script). This will in
+ turn download and unpack the current larch package, setting up symlinks so that
+ the build scripts can be run from this working directory.</li>
+ <li>Run './mklarch -h' to get a usage description.
+ </li>
+ <li>From now on you must be running as root, i.e. it's potentially dangerous stuff!
+ </li>
+ <li>You can then try building one of the example profiles, for example:
+ <pre>./mklarch -p larch/profiles/xmini</pre>
+ You can also adapt one of the example profiles to your own needs.
+ </li>
+ <li> If you chose a delivered profile, the build should just run, apart from
+ asking for confirmation a few times.
+ </li>
+ <li> For a custom build:
+ <ul>
+ <li> Copy an example profile (from larch/profiles) to your working directory, giving it
+ an appropriate name.
+ </li>
+ <li> Edit 'locale.gen' for your glibc locale needs.
+ </li>
+ <li> Edit 'rcconfx', which contains just the changes to the default
+ /etc/rc.conf. Especially the locale and console
+ keyboard setting may be interesting.</li>
+ <li> Editing the overlay (the set of files which are changed from the default
+ installation) might be a bit trickier, as permissions and ownerships must be
+ correct. Please read the relevant
+ <a href="larch_profiles.html">documentation</a>
+ before attempting this.</li>
+ <li> OPTIONAL: If you want ssh access to your live system,
+ see <a href="larch_ssh.html">'ssh access'</a></li>
+ </ul>
+ before running <em>mklarch</em>.
+ <li> Another possibility is to use <strong>larchify</strong> (run './larchify -h'
+ for a usage description) to 'livify' an existing <em>Arch Linux</em> installation, even
+ the currently running one. Certain packages must be installed, but then running
+ './larchify path/to/installation' should be
+ enough for a simple build. See <a href="larch_overview.html#existingSystem">
+ 'Making a live CD from an existing <em>Arch</em> installation'</a> for more details.</li>
+ <li> After a while, the iso for the CD should be ready for burning.</li>
+ <li> Alternatively, you can put it on a USB-stick, by passing the '-u' option
+ to 'mklarch'.</li>
+ <li> Share and Enjoy!</li>
+</ul>
+
+<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
+ <tbody>
+ <tr>
+
+ <td><a href="larch_features.html">Previous: Features</a></td>
+
+ <td><a href="larch_docindex.html">Table of Contents</a></td>
+
+ <td><a href="larch_overview.html">Next: Larch Overview</a></td>
+
+ </tr>
+ </tbody>
+</table>
+
+</body>
+</html>
diff --git a/build_tools/clarch/larch/docs/html/larch_running.html b/build_tools/clarch/larch/docs/html/larch_running.html
new file mode 100644
index 0000000..e0d28f3
--- /dev/null
+++ b/build_tools/clarch/larch/docs/html/larch_running.html
@@ -0,0 +1,169 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+ <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
+ <title>running larch</title>
+ <meta content="gradgrind" name="author">
+</head>
+
+<body>
+
+<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
+ <tbody>
+ <tr>
+
+ <td><a href="larch_ssh.html">Previous: ssh access</a></td>
+
+ <td><a href="larch_docindex.html">Table of Contents</a></td>
+
+ <td><a href="larch_.html">Next: ????</a></td>
+
+ </tr>
+ </tbody>
+</table>
+
+<br />
+
+<h1><big>larch</big>
+&ndash;
+a do-it-yourself live <em>Arch Linux</em> CD</h1>
+
+<img style="border: 0px solid ; width: 320px; height: 320px;" alt="" src="larch1.jpg"
+ name="graphics1" align="right" hspace="10" vspace="10" />
+<br /><br />
+
+<h2>Running a <em>larch</em> live-CD/USB system</h2>
+
+<p>Of course the details depend on what you have installed and how you have
+configured it. For example, the 'mini2' example profile builds a console-only system,
+the 'xmaxi' profile boots to xfce4.
+</p>
+
+<p>One thing worth noting is that these supplied profiles automatically login
+to the root account, which - potentially - allows all sorts of 'dangerous' actions,
+like reformatting your disks or making a mess of your file-systems in other ways.
+This is because one of the main <em>raisons d'être</em> for <em>larch</em> is its use
+as an <em>Arch</em>-installation-and-rescue medium. For this, you need root access.
+However, if you want to use the system in other ways, e.g. for text or image editing,
+or for internet browsing or e-mail writing, it might be safer to do this as an
+unprivileged user. Such a user is easily created with the 'adduser' command, or
+in KDE with 'kuser' (or using the 'luser.py' script in the <em>larch</em>
+'<em>luser</em>' package). If you have a writable boot medium, such changes can be
+'remembered' by saving the session when you shut the system down (the possibility
+will normally be offered automatically).
+</p>
+
+<h4><a name="bootparm"></a>Boot parameters</h4>
+
+<p>As the <em>larch</em> build system is highly configurable, the available
+boot parameters can also vary, but by default 'swap' and 'c2r' are provided.
+'swap' indicates that an existing swap partition should be used (the default
+is not to use it). 'c2r' means 'copy to RAM', i.e. the system data is copied
+to main memory before the system is initialized. This allow the system to run
+very fast and frees up the boot device (e.g. the boot CD can be ejected and the
+drive used for another CD), but it does require a lot of memory (significantly
+more than the size of the boot medium), and the boot process is rather slow
+because so much data must be copied. Because of the high memory usage, I have
+arranged it so that 'c2r' also implies 'swap'. With A USB-stick as boot medium,
+the 'c2r' parameter should generally not really be needed, performance is normally
+pretty good and it doesn't occupy the CD-drive (if an extra boot CD is needed, on
+a machine that can't boot directly from USB, that can be removed after
+booting even without 'c2r').
+</p>
+
+<h4><a name="config"></a>Configuration</h4>
+
+<p>The supplied profiles are just intended as starting points for your own
+configurations, they are fairly primitive, in fact only a little more than a newly
+installed <em>Arch</em> sytem. If you are running a profile with X11, you may find that you
+need to configure it before it will run. Since <em>Xorg</em> version 7.3, it
+is often possible to run without an <strong>/etc/X11/xorg.conf</strong>, but
+it may be necessary to create and tweak the configuration file for your system.
+You can try 'X -configure' or 'xorgconfig' to create a starting point which you can
+then tweak. Start X with <em>startx</em>.
+</p>
+
+<p>The 'xmini' and 'xmaxi' profiles use a slightly more elaborate login approach on
+the first terminal, with a simple menu as well as automatic login. There is also
+a logout gui for xfce, which together with the login script can
+trigger session saving directly, bypassing the console prompt.
+</p>
+
+<p>If you are stuck with the console, there is still hope. It's not as pretty or
+newbie friendly as an X11 desktop, but still quite capable. I always like to have
+<em>mc</em> available, it's a real godsend for non-geeks (you should also install
+<em>lynx</em> so that HTML files can be displayed on the console - at a
+pinch you can also surf with it, but it is painful).
+</p>
+
+<p>If your console keyboard map is
+wrong, try running <i>km</i> (I stole this from the
+standard Arch install CD and modified it a bit to work in <em>larch</em>).
+It also modifies '/etc/rc.conf', so the change can be retained for subsequent
+runs by performing a 'session-save'.
+</p>
+
+<p>If you have a DHCP server on your network, you might well find that
+the network interface is configured automatically (assuming your <em>rc.conf</em>
+is configured appropriately). On my prototype, I could just fire up <em>konqueror</em>
+and the world was my oyster, as they say. If not, well I'm afraid it's
+not so easy. Until someone comes up with something better, you'll have
+to edit the appropriate configuration files (primarily '/etc/rc.conf')
+- see the <em>Arch Linux</em> documentation for details - and then do
+'/etc/rc.d/network start'. If you already have a running network
+interface but want to change it, you may need to stop it running first,
+using 'stop' instead of 'start', then make the changes, then start it.
+I don't know if 'restart' would work (it stops then starts the network)
+after a change to the configuration.
+</p>
+
+<p>Of course the exact details of what you can do depends on what
+software you installed, so I won't rabbit on endlessly about it here.
+Nearly all configuration details should be just the same as in a normal,
+hard-disk based installation.
+</p>
+
+<h4><a name="install"></a>Installation to hard disk</h4>
+
+<p>The <em>larch</em> hard-disk installer <em>larchin</em> may be used to install
+<em>Arch Linux</em> to hard disk (or similar). At the moment it is very fresh
+and rather minimal, probably rather buggy, but I hope it will improve over time.
+It is not intended as a complete solution for all aspects of <em>Arch</em> installation,
+but I have tried to concentrate on those areas that are unique to the installation
+process. In other words it does very little system configuration, because such
+requirements can also exist in an already installed system, so I think this should
+be covered by separate tools.
+<em>larchin</em> deals with partitioning and formatting of hard drives, placing
+<em>Arch Linux</em> (primarily a copy of the live system on which it is running)
+on the newly formatted partitions, and installation of the GRUB bootloader.
+It is so fresh that it hasn't yet got any documentation yet, but it's usage
+should be very straightforward - just run 'larchin.py', as root).
+</p>
+
+<p>As mentioned above the main approach to <em>Arch</em> installation covered by
+<em>larchin</em> is to copy the contents of the live system to a hard drive. Those
+(few) bits peculiar to the needs of a live system are removed and the result is a
+completely normal <em>Arch Linux</em> installation. I should perhaps mention
+the file 'larch0' in the '/.livesys' directory (copied there from the 'larch/copy'
+directory on the boot medium). This script is run at the end of the installation
+(if it exists) and allows custom installation actions to be performed.
+The possibility of doing a completely fresh installation using ftp to
+fetch the latest packages may be added at some point, but that is not yet certain.
+</p>
+
+<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
+ <tbody>
+ <tr>
+
+ <td><a href="larch_ssh.html">Previous: ssh access</a></td>
+
+ <td><a href="larch_docindex.html">Table of Contents</a></td>
+
+ <td><a href="larch_.html">Next: ????</a></td>
+
+ </tr>
+ </tbody>
+</table>
+
+</body>
+</html>
diff --git a/build_tools/clarch/larch/docs/html/larch_sessionsave.html b/build_tools/clarch/larch/docs/html/larch_sessionsave.html
new file mode 100644
index 0000000..edca50c
--- /dev/null
+++ b/build_tools/clarch/larch/docs/html/larch_sessionsave.html
@@ -0,0 +1,162 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+
+<head>
+ <meta content="text/html;charset=UTF-8" http-equiv="Content-Type" />
+ <title>larch session saving</title>
+ <meta content="gradgrind" name="author" />
+</head>
+
+<body>
+
+<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
+ <tbody>
+ <tr>
+ <td><a href="larch_fstab.html">Previous: /etc/fstab</a></td>
+
+ <td><a href="larch_docindex.html">Table of Contents</a></td>
+
+ <td><a href="larch_ssh.html">Next: ssh access</a></td>
+ </tr>
+ </tbody>
+</table>
+
+<br />
+
+<h1><big>larch</big> &ndash; a do-it-yourself live <em>Arch Linux</em> CD</h1>
+
+<img style="border: 0px solid ; width: 320px; height: 320px;" alt="" src="larch1.jpg"
+ name="graphics1" align="right" hspace="10" vspace="10" />
+<br /><br />
+
+<h2>Saving a session back to the boot device (or even somewhere else)</h2>
+
+<p>An easy way to create a customized live-USB-stick is to start from an
+existing one, make whatever changes you like, and then save the result back to
+the USB-stick.
+</p>
+
+<h3><a name="overlays"></a>Overlay archives, <strong>overlay.ovl</strong> and
+<strong>mods.sqf</strong></h3>
+
+<p>In <em>larch</em> the <em>overlay</em> file-system (in the
+<em>compressed</em> file 'overlay.ovl') can be rebuilt
+from the state of the live system when it shuts down.
+This is handled primarily by the script <strong>/opt/larch-live/session-save/saveovl</strong>, which is
+called from the customized shutdown function.
+If the medium is writable and contains a file 'larch/save', the user is offered the possibility of
+rewriting the overlay archive, thus saving the current state.
+</p>
+
+<p>The main overlay archive (<strong>overlay.ovl</strong>) is unpacked into memory
+at boot and repacked when saving the session at shutdown. When this archive grows
+too large it will reduce the amount of available memory, perhaps to an unacceptable extent.
+It will also lengthen boot and shutdown times. To counter this, it is possible to merge the
+overlay archive into the middle <em>union</em> layer in <strong>mods.sqf</strong> (which is
+normally not copied to memory), thus restoring the rapid load and save times
+for <strong>overlay.ovl</strong>, and maximizing the available memory. I call this process
+'overlay merging', and it is offered as a shutdown option.
+It takes longer to execute than a normal session save, but from larch version 5.2
+a new <em>aufs</em> option allows the merging to be done quicker than it was
+previously and without significant extra memory requirements. In this version
+a separate <em>aufs</em> union of the two overlay layers is mounted in which
+the whiteouts are visible. This union can then be squashed directly, without
+requiring the new, merged overlay to be rebuilt in memory. As it is a feature
+of <em>aufs</em>, overlay merging is no longer supported for <em>unionfs</em>
+(note that <em>unionfs</em> is at present not actively supported in <em>larch</em>
+anyway).
+</p>
+
+<h3><a name="var_files"></a>Special places in /var</h3>
+
+<p>It was considered undesirable to include some things in the '/var' directory
+in the session saves, primarily because of the space they occupy. Firstly,
+the standard <em>pacman</em> package cache, '/var/cache/pacman/pkg' - if you
+do want to save your cache, you should either handle this manually or set
+up another location using 'CacheDir' in /etc/pacman.conf'. Also the log files
+(in '/var/log') and '/var/tmp' (temporary files, like '/tmp') are not saved.
+</p>
+
+<h3><a name="upd_packages"></a>Updating packages</h3>
+
+<p>It should be possible to include package addition and removal in the list
+of customizations undertaken using this method, but there are some limitations. Apart from
+size considerations (the top level overlay is unpacked into memory at boot), there is also
+a limitation connected with the kernel. Essentially, the kernel and its modules may not
+be updated. <strong>If you do this, you may well make a mess of your system</strong>.
+In other words, be very careful with 'pacman -Su' - only upgrade selected packages.
+</p>
+<p>The reason for this is that the kernel is not contained within the
+squashed file-system, but is held separately on the boot medium, while its modules
+are contained in the squashed system and also in the initramfs. Updating these is not
+impossible (if booting from a writable medium), but <em>pacman</em> cannot do it and
+it is not straightforward (e.g. using a CD to boot to a USB-stick on a computer not
+supporting USB boot would additionally need a new CD). A complete rebuild of the live
+system might be a better approach. And using 'larchify' it should even be possible to
+perform such a rebuild from within the running live system.
+</p>
+
+<h3><a name="de-Act"></a>Activating and deactivating the session-saving feature</h3>
+
+<p>As mentioned above, for this feature to be available, there must be a file with
+the name 'save' in the boot medium's 'larch' directory.
+</p>
+
+<h3><a name="custom"></a>Customizing the behaviour using scripts</h3>
+
+<p>Some aspects of the session saving can be customized by writing scripts to
+override the default behaviour. These scripts are (in general) kept on the boot
+medium, in the 'larch' directory. As these are shell scripts and their use requires
+some knowledge of the inner workings of the <em>larch</em> live system, it will
+almost certainly be necessary to read the existing <em>larch</em> scripts where the
+custom scripts are 'sourced' if you want to
+write your own scripts to change the behaviour of the <em>larch</em> live system.
+</p>
+<ul>
+ <li><strong>session-save</strong>
+ <p>Used in <strong>/opt/larch-live/session-save/saveovl</strong>. This script can be
+ used to customize the creation of the new overlay archive, e.g. by
+ specifying a new location. The default is 'overlay.ovl' on the boot medium.
+ </p>
+ </li>
+ <li><strong>save-menu</strong>
+ <p>Used in <strong>/opt/larch-live/session-save/saveovl</strong>. This script can be
+ used to further customize the creation of the new overlay archive, e.g. by
+ providing an alternative session save menu. Note that if the
+ <strong>session-save</strong> script specified an alternative device path
+ for saving the overlay, this script will be sought in the 'larch' directory
+ on that path.
+ </p>
+ </li>
+ <li><strong>merge-adjust</strong>
+ <p>Used in <strong>/opt/larch-live/session-save/merge_overlay</strong>. This script can be
+ used to further customize aspects of the overlay merging process. Note that if the
+ <strong>session-save</strong> script specified an alternative device path
+ for saving the overlay, this script will be sought in the 'larch' directory
+ on that path.
+ </p>
+ </li>
+ <li><strong>boot-init</strong>
+ <p>In initramfs hook <strong>larch3</strong>. This script allows adjustment of
+ the overlay handling during the boot process, e.g. getting them from another
+ path.
+ Note that the shell environment here is that of the initramfs and thus
+ very limited.
+ </p>
+ </li>
+</ul>
+
+<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
+ <tbody>
+ <tr>
+ <td><a href="larch_fstab.html">Previous: /etc/fstab</a></td>
+
+ <td><a href="larch_docindex.html">Table of Contents</a></td>
+
+ <td><a href="larch_ssh.html">Next: ssh access</a></td>
+ </tr>
+ </tbody>
+</table>
+
+</body>
+</html>
diff --git a/build_tools/clarch/larch/docs/html/larch_ssh.html b/build_tools/clarch/larch/docs/html/larch_ssh.html
new file mode 100644
index 0000000..f7db018
--- /dev/null
+++ b/build_tools/clarch/larch/docs/html/larch_ssh.html
@@ -0,0 +1,205 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+
+<head>
+ <meta content="text/html;charset=UTF-8" http-equiv="Content-Type" />
+ <title>larch ssh access</title>
+ <meta content="gradgrind" name="author">
+</head>
+
+<body>
+
+<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
+ <tbody>
+ <tr>
+ <td><a href="larch_sessionsave.html">Previous: Session saving</a></td>
+
+ <td><a href="larch_docindex.html">Table of Contents</a></td>
+
+ <td><a href="larch_running.html">Next: Running larch</a></td>
+ </tr>
+ </tbody>
+</table>
+
+<br />
+<h1><big>larch</big> &ndash; a do-it-yourself live <em>Arch Linux</em> CD</h1>
+
+<img style="border: 0px solid ; width: 320px; height: 320px;" alt="" src="larch1.jpg"
+ name="graphics1" align="right" hspace="10" vspace="10" />
+<br /><br />
+
+<h2>ssh access</h2>
+<br />
+
+<p>One feature I wanted in my live system was the ability to
+access and control it remotely via <em>ssh</em>. <em>ssh</em> is
+generally very useful, but here it also gives my installation CD a rare
+advantage over most others - using it I can install <em>Arch Linux</em>
+to a computer which has no keyboard or monitor. Insert the CD, boot up
+the computer (assuming it is configured to boot from CD), and log in
+via the network using another computer. Isn't <em>Linux</em> great!
+</p>
+
+<p>Well, it doesn't quite work out of the box, though it could be
+tweaked so that - in the right environment - it would. Firstly, there
+must be a network connection which gets set up automatically -
+the easiest is probably <em>DHCP</em> (so long as
+you can then find the address of the live system),
+but by tweaking <strong>rc.conf</strong> (via <strong>rcconfx</strong>
+in the <em>profile</em> or by using the session saving feature)
+a static address is also easy to set up.
+Secondly you must provide the live system with your public key, so
+that you are allowed access (using public key authentication), or else
+set a password for the <em>larch</em> root user (probably easiest using the
+session saving feature).
+</p>
+
+<h4>id_rsa.pub & authorized_keys</h4>
+
+<p><strong>id_rsa.pub</strong>
+is a public key, and it can be used to allow the user (on the remote machine)
+whose key this is to <em>ssh</em> into the live system.
+If you leave passwordless logins disabled (the
+default), then so long as no root password is set,
+the only way in (to the root account) is via public key authentication.
+Of course, if you change the root password, anyone (who knows the
+password) can log in via <em>ssh</em>
+(if the <em>sshd</em> daemon is running).
+</p>
+
+<p>To generate this key for your user (assuming you don't already
+have one, in <strong>~/.ssh</strong>):
+</p>
+
+<pre style="margin-left: 80px;">ssh-keygen -t rsa</pre>
+
+<p>Use the default destination file and empty passphrase
+(normally you wouldn't do that,
+but I think it is appropriate in this case).
+</p>
+
+<p>In order to enable <em>ssh</em> to the root account on the live
+system, the contents of this file (a single text line) must be placed in
+the <em>larch</em> system's <strong>/root/.ssh/authorized_keys</strong> file.
+This file will probably not yet
+exist, so the 'id_rsa.pub' can be simply copied to it.
+If doing this before building the live-CD, copy the file to this
+position in the 'overlay' directory in the <em>profile</em>, being
+careful to get ownerships (root:root) and permissions (644) correct.
+To do this in a running <em>larch</em> system, copy the file to this location -
+session saving will then preserve it.
+</p>
+
+<p>If you don't need <em>sshd</em> on the live system, you can
+remove it from the daemons in <strong>rc.conf</strong>.</p>
+</p>
+
+<h4>/etc/hosts.allow</h4>
+
+<p>
+This must be edited to allow <i>ssh</i>
+access to the live system:
+</p>
+
+<pre style="margin-left: 80px;">
+# To allow ssh in from anywhere
+sshd: ALL
+</pre>
+
+<p>If that is too radical for you, you might be able to restrict
+it somewhat - that depends on your exact circumstances. For example:
+</p>
+
+<pre style="margin-left: 80px;">
+# To allow ssh in from local net (example)
+sshd: 192.168.1.
+</pre>
+
+<h4>ssh host keys</h4>
+
+<p>The files
+<strong>/etc/ssh/ssh_host_dsa_key</strong>
+<strong>/etc/ssh/ssh_host_dsa_key.pub</strong>,
+<strong>/etc/ssh/ssh_host_rsa_key</strong>,
+<strong>/etc/ssh/ssh_host_rsa_key.pub</strong>,
+<strong>/etc/ssh/ssh_host_key</strong>,
+and
+<strong>/etc/ssh/ssh_host_key.pub</strong>
+are normally (in a hard-disk based system) generated on the first run of
+<strong>/etc/rc.d/sshd</strong>, i.e. during the first boot after a new
+installation. This only needs to be done once. However in a live-CD system
+changes are generally lost when the system shuts down, so this would need
+to be done at every boot, which takes a while, so I prefer to pregenerate them.
+At present this is
+done during the first phase of the live-CD build (the <em>Arch Linux</em>
+installation phase). What this means is that all live-CDs generated from
+this base will have the same ssh host keys. If security is important to
+you, these should be regenerated, e.g. for the running <em>larch</em> system
+as follows:
+</p>
+
+<pre style="margin-left: 80px;">
+rm /etc/ssh/ssh_host_*
+/etc/rc.d/sshd restart
+</pre>
+
+<h3><a name="ssh_x11"></a><em>ssh</em> and <em>X11</em></h3>
+
+<p>
+If you have set up 'X11 Forwarding' (see below), you can run X11 applications on the
+live system from your remote system. This is very neat! Before <em>xorg</em> reached
+version 7 there were complications due to the location of its <em>xauth</em>
+program, but since that version this is at the <em>ssh</em>
+default position, <strong>/usr/bin/xauth</strong>, so all should now be well.
+</p>
+
+<p>
+Bear in mind that this will only work if you use the -Y option to <em>ssh</em>,
+or set up its configuration file properly.
+</p>
+
+[
+<p style="margin-left: 40px;">
+If, for some reason you are not using Xorg7(+), you may need to set the <em>xauth</em>
+path in <strong>/etc/ssh/sshd_config</strong>
+and/or <strong>/etc/ssh/ssh_config</strong> (or set a <em>symlink</em> from <strong>/usr/bin/xauth</strong> to <strong>/usr/X11R6/bin/xauth</strong>):
+</p>
+
+<pre style="margin-left: 80px;">XAuthLocation /usr/X11R6/bin/xauth</pre>
+]
+
+<h4>/etc/ssh/sshd_config</h4>
+
+<p>This file is changed to allow X applications to run on the
+live system but display on another:
+</p>
+
+<pre style="margin-left: 80px;">X11Forwarding yes</pre>
+
+<p>
+This will only work if you use the -Y option to <em>ssh</em>
+on the system from which you log in, and on which
+you want to display the X windows (e.g. 'ssh -Y
+root@192.168.0.201'). Alternatively you can put the
+following in <em>its</em> <strong>etc/ssh/ssh_config</strong>:
+</p>
+
+<pre style="margin-left: 80px;">
+ForwardX11 yes
+ForwardX11Trusted yes
+</pre>
+
+<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
+ <tbody>
+ <tr>
+ <td><a href="larch_sessionsave.html">Previous: Session saving</a></td>
+
+ <td><a href="larch_docindex.html">Table of Contents</a></td>
+
+ <td><a href="larch_running.html">Next: Running larch</a></td>
+ </tr>
+ </tbody>
+</table>
+
+</body>
+</html>
diff --git a/build_tools/clarch/larch/profile0/cd-root/README b/build_tools/clarch/larch/profile0/cd-root/README
new file mode 100644
index 0000000..325b31c
--- /dev/null
+++ b/build_tools/clarch/larch/profile0/cd-root/README
@@ -0,0 +1,8 @@
+If in "GRUB" mode, the contents of the "boot" directory will be copied
+to the "boot" directory on the CD.
+
+If in "isolinux" mode, the contents of the "isolinux" directory will be
+copied to the "isolinux" directory on the CD.
+
+In both cases these profile files may overwrite the default ones from
+"larch/cd-root".
diff --git a/build_tools/clarch/larch/profile0/cd-root/isolinux/isolinux.cfg b/build_tools/clarch/larch/profile0/cd-root/isolinux/isolinux.cfg
new file mode 100644
index 0000000..0f45c6b
--- /dev/null
+++ b/build_tools/clarch/larch/profile0/cd-root/isolinux/isolinux.cfg
@@ -0,0 +1,29 @@
+default vesamenu.c32
+prompt 0
+timeout 50
+
+MENU BACKGROUND bkgd.jpg
+
+MENU TITLE larch live CD from existing installation
+
+label linux
+MENU LABEL Default: no swap, no copy-to-ram
+kernel vmlinuz
+append initrd=larch.img
+# or with video mode for beyond kernel:
+#append initrd=larch.img video=vesafb:ywrap,mtrr,800x600@60
+
+label linux-c2r
+MENU LABEL larch copy-to-ram (also activates swap)
+kernel vmlinuz
+append initrd=larch.img c2r
+
+label linux-swap
+MENU LABEL larch with swap
+kernel vmlinuz
+append initrd=larch.img swap
+
+
+label memtest
+MENU LABEL Memory tester
+kernel memtest
diff --git a/build_tools/clarch/larch/profile0/kernel b/build_tools/clarch/larch/profile0/kernel
new file mode 100644
index 0000000..51635f9
--- /dev/null
+++ b/build_tools/clarch/larch/profile0/kernel
@@ -0,0 +1,2 @@
+VMLINUZ=vmlinuz26
+KVERSION=$( uname -r )
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/addedpacks b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/addedpacks
new file mode 100644
index 0000000..6668d64
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/addedpacks
@@ -0,0 +1,170 @@
+# These are needed to build a live CD
+linhes-live
+squashfs-tools
+lzop
+
+syslinux
+
+# You need a kernel.
+#kernel26 is now in 'base'
+aufs
+
+# To eject a cd
+eject
+
+# Useful for use as installer, etc.
+#ntfsprogs
+#parted
+
+#ddcxinfo-knoppix
+#hwd
+
+sudo
+
+lsof
+cdrkit
+dvd+rw-tools
+
+# Needed by the installer
+#python
+
+#base-devel
+#larch
+
+# generally useful tools which don't require X
+#mtools is required by syslinux
+openssh
+dosfstools
+alsa-lib
+alsa-oss
+alsa-utils
+cdparanoia
+cdrdao
+
+# Xorg packages
+xorg-server
+xorg-xkb-utils
+xorg-xauth
+xorg-server-utils
+xorg-xinit
+xorg-input-drivers
+xterm
+xorg-fonts-100dpi
+xorg-fonts-75dpi
+xorg-res-utils
+
+#xorg-video-drivers
+xf86-video-amd
+xf86-video-apm
+xf86-video-ark
+xf86-video-ati
+xf86-video-chips
+xf86-video-cirrus
+xf86-video-dummy
+xf86-video-fbdev
+xf86-video-glint
+xf86-video-i128
+xf86-video-i740
+#xf86-video-i810
+xf86-video-imstt
+xf86-video-intel
+xf86-video-mga
+xf86-video-neomagic
+xf86-video-nv
+xf86-video-radeonhd
+xf86-video-rendition
+xf86-video-s3
+xf86-video-s3virge
+xf86-video-savage
+xf86-video-siliconmotion
+xf86-video-sis
+xf86-video-sisusb
+#xf86-video-tdfx
+xf86-video-trident
+xf86-video-tseng
+xf86-video-unichrome
+xf86-video-v4l
+xf86-video-vesa
+xf86-video-vga
+#xf86-video-via
+xf86-video-vmware
+xf86-video-voodoo
+
+# X apps
+#luser
+#localed
+
+#xkmap
+
+#gparted
+#larchin
+
+#mythtv
+mythtv
+mytharchive
+mythbrowser
+mythcontrols
+mythflix
+mythgallery
+mythgame
+mythmusic
+mythphone
+myththemes
+mythweather
+mythweb
+mythvideo
+nuvexport
+lirc
+lirc-utils
+mysql
+xmltv
+esd
+
+#Window Manager
+fluxbox
+feh
+
+#Other
+dbus
+hal
+fftw2
+libcdaudio
+iptables
+pkgconfig
+taglib
+
+#MythVantage Installer deps
+bc
+mysql-python
+expect
+curl
+dnsutils
+
+#Wireless
+b43-fwcutter
+ipw2100-fw
+ipw2200-fw
+ipw3945
+ipw3945-ucode
+ipw3945d
+iwlwifi-3945-ucode
+iwlwifi-4965-ucode
+madwifi
+madwifi-utils
+ndiswrapper
+ndiswrapper-utils
+netcfg
+rt2500
+rt2x00-rt61-fw
+rt2x00-rt71w-fw
+tiacx
+tiacx-firmware
+wireless_tools
+wlan-ng26
+wlan-ng26-utils
+zd1211-firmware
+
+#----
+live-installer
+etcnet
+runit
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cache_packs b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cache_packs
new file mode 100644
index 0000000..b95e6f4
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cache_packs
@@ -0,0 +1 @@
+mythdb-initial
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cd-root/isolinux/isolinux.cfg b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cd-root/isolinux/isolinux.cfg
new file mode 100644
index 0000000..26a365a
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cd-root/isolinux/isolinux.cfg
@@ -0,0 +1,49 @@
+default vesamenu.c32
+prompt 0
+timeout 50
+
+MENU BACKGROUND vbg.jpg
+MENU COLOR border 31;40 #90ffff00 #00000000 std
+MENU COLOR sel 31;47 #00000000 #FFFFFF15 al
+
+MENU TITLE LinHES: The Linux Home Entertainment System
+
+label linux
+MENU LABEL LinHES with Splashy (default).
+kernel vmlinuz
+append initrd=larch.img vga=791 quiet splash
+
+label linux-nosplash
+MENU LABEL LinHES without splash screen.
+kernel vmlinuz
+append initrd=larch.img
+
+label linux-splash
+MENU LABEL LinHES with splash screen.
+kernel vmlinuz
+append initrd=larch.img vga=791 quiet splash
+
+label linux-i810
+MENU LABEL with Intel i810 driver (DRI disabled)
+kernel vmlinuz
+append initrd=larch.img i810
+
+label linux-nox
+MENU LABEL Boot to console (without X windowing)
+kernel vmlinuz
+append initrd=larch.img 3
+
+label linux-c2r
+MENU LABEL LinHES: copy-to-ram (also activates swap)
+kernel vmlinuz
+append initrd=larch.img c2r
+
+label linux-swap
+MENU LABEL LinHES: Use swap
+kernel vmlinuz
+append initrd=larch.img swap
+
+
+label memtest
+MENU LABEL Memory tester
+kernel memtest
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cd-root/isolinux/vbg.jpg b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cd-root/isolinux/vbg.jpg
new file mode 100644
index 0000000..43fbdd2
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cd-root/isolinux/vbg.jpg
Binary files differ
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cd-root/larch/copy/actions.rc b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cd-root/larch/copy/actions.rc
new file mode 100644
index 0000000..dd95b26
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cd-root/larch/copy/actions.rc
@@ -0,0 +1,3 @@
+type=0
+orientation=1
+
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cd-root/larch/copy/autologin b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cd-root/larch/copy/autologin
new file mode 100644
index 0000000..93ca142
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cd-root/larch/copy/autologin
@@ -0,0 +1 @@
+root \ No newline at end of file
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cd-root/larch/copy/bash_profile b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cd-root/larch/copy/bash_profile
new file mode 100644
index 0000000..c49349b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cd-root/larch/copy/bash_profile
@@ -0,0 +1 @@
+. $HOME/.bashrc
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cd-root/larch/copy/larch0 b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cd-root/larch/copy/larch0
new file mode 100644
index 0000000..c80b7c2
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/cd-root/larch/copy/larch0
@@ -0,0 +1,63 @@
+# This is a script 'sourced' from the installation script larch-tidy.
+# Its purpose is to remove custom live-only stuff from a just-installed
+# system.
+# ${INSTALL} is the path to the installed system root directory.
+
+rm "${INSTALL}/root/Desktop/Install Arch Linux.desktop"
+
+if [ -f ${INSTALL}/etc/rc.local.orig ]; then
+ mv ${INSTALL}/etc/rc.local.orig ${INSTALL}/etc/rc.local
+fi
+if [ -f ${INSTALL}/etc/rc.local.shutdown.orig ]; then
+ mv ${INSTALL}/etc/rc.local.shutdown.orig ${INSTALL}/etc/rc.local.shutdown
+fi
+
+# slim is currently started in inittab
+#sed -i '/^DAEMONS=/ s|!slim|@slim|' ${INSTALL}/etc/rc.conf
+
+# Copy xorg.conf.i810 to target xorg.conf if necessary
+if ! [ -f /etc/X11/xorg.conf ]; then
+ if grep i810 /proc/cmdline &>/dev/null; then
+ cp /etc/X11/xorg.conf.i810 ${INSTALL}/etc/X11/xorg.conf
+ fi
+fi
+
+#***************************************************#
+# Replace uses of larchquit in xfce panels and menu.#
+#***************************************************#
+### Unfortunately this isn't very simple. If anyone has a better way of
+### providing different Quit actions in the live version and the version
+### installed to disk from it, please let me know!
+### Maybe it would be better just to provide a special live quit desktop
+### icon which can be removed on installation, like the installation icon.
+
+defaultquit='<builtin name="Quit" cmd="Quit" icon="gnome-logout"/>'
+
+replacequit ()
+{
+ for f in ${INSTALL}$1/.config/xfce4/panel/*; do
+ if grep "^Exec=larchquit" ${f}; then
+ n=$( echo ${f} | sed "s|^.*-\([0-9]\+\).*|\1|" )
+ cp /.livesys/actions.rc \
+ ${INSTALL}$1/.config/xfce4/panel/actions-${n}.rc
+ rm ${f}
+
+ sed -i "s|=\"launcher\" id=\"${n}\"|=\"actions\" id=\"${n}\"|" \
+ ${INSTALL}$1/.config/xfce4/panel/panels.xml
+ fi
+ done
+
+ if [ -f ${INSTALL}$1/.bash_profile ]; then
+ sed -i "s|<app .*cmd=\"larchquit.*/>|${defaultquit}|" \
+ ${INSTALL}$1/.config/xfce4/desktop/menu.xml
+
+ cp /.livesys/xfce4-session.rc ${INSTALL}$1/.config/xfce4-session
+ cp /.livesys/bash_profile ${INSTALL}$1/.bash_profile
+ fi
+}
+
+for hd in $( cat ${INSTALL}/etc/passwd | cut -d':' -f6 | grep '^/home/' ) \
+ /root /etc/skel; do
+ replacequit ${hd} &>/dev/null
+done
+#***************************************************#
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/create_overlay.sh b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/create_overlay.sh
new file mode 100755
index 0000000..6a4fdee
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/create_overlay.sh
@@ -0,0 +1 @@
+../../run/xpack -r overlay overlay.xpk
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/locale.gen b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/locale.gen
new file mode 100644
index 0000000..760ec23
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/locale.gen
@@ -0,0 +1,5 @@
+# locales for larch (/etc/locale.gen)
+
+en_US ISO-8859-1
+en_US.UTF-8 UTF-8
+
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/overlay/home/mythtv/.fluxbox/apps b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/overlay/home/mythtv/.fluxbox/apps
new file mode 100644
index 0000000..5a2b8d6
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/overlay/home/mythtv/.fluxbox/apps
@@ -0,0 +1,2 @@
+[startup] {feh --bg-scale ~/.fluxbox/wallpaper.png}
+[startup] {sudo /usr/MythVantage/bin/mythvantage}
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/overlay/home/mythtv/.xinitrc b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/overlay/home/mythtv/.xinitrc
new file mode 100755
index 0000000..d988c98
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/overlay/home/mythtv/.xinitrc
@@ -0,0 +1,19 @@
+#!/bin/sh
+. /etc/profile
+#
+# ~/.xinitrc
+#
+# Executed by startx (run your window manager from here)
+#
+
+# exec gnome-session
+# exec startkde
+# exec startxfce4
+# exec icewm
+# exec openbox
+# exec blackbox
+# exec fluxbox
+# exec ratpoison
+# exec dwm
+# ... or any other WM of your choosing ...
+exec fluxbox
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/pacman.conf b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/pacman.conf
new file mode 100755
index 0000000..e33684f
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/pacman.conf
@@ -0,0 +1,61 @@
+#
+# /etc/pacman.conf
+# from pacman.conf MV
+# NOTE: If you find a mirror that is geographically close to you, please
+# move it to the top of the server list, so pacman will choose it
+# first.
+#
+# To re-sort your mirror lists by ping/traceroute results, use the
+# /usr/bin/sortmirrors script. It requires the "netselect" package.
+#
+
+# See the pacman manpage for option directives
+
+#
+# GENERAL OPTIONS
+#
+[options]
+LogFile = /var/log/pacman.log
+NoUpgrade = etc/passwd etc/group etc/shadow etc/sudoers
+NoUpgrade = etc/fstab etc/raidtab etc/ld.so.conf
+NoUpgrade = etc/rc.conf etc/rc.local
+NoUpgrade = etc/modprobe.conf etc/modules.conf
+NoUpgrade = etc/lilo.conf boot/grub/menu.lst
+NoUpgrade = data/srv/hobbit/etc/bb-hosts
+NoUpgrade = etc/func/minion.conf
+
+HoldPkg = pacman glibc
+CacheDir = /data/var/cache/pacman/pkg
+#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
+
+#
+# REPOSITORIES
+# - can be defined here or included from another file
+# - pacman will search repositories in the order defined here.
+# - local/custom mirrors can be added here or in separate files
+#
+[core-testing]
+Server = http://knoppmyth.net/repo/i586/core
+
+[extra-testing]
+Server = http://knoppmyth.net/repo/i586/extra
+
+
+########################ARCH DEFAULTS#############
+#[core]
+# Add your preferred servers here, they will be used first
+#Include = /etc/pacman.d/mirrorlist
+
+#[extra]
+# Add your preferred servers here, they will be used first
+#Include = /etc/pacman.d/mirrorlist
+
+#[community]
+# Add your preferred servers here, they will be used first
+#Include = /etc/pacman.d/mirrorlist
+
+# Unstable is disabled by default. To enable, uncomment the following
+# two lines. You can add preferred servers immediately after the header,
+# and they will be used before the default mirrors.
+#[unstable]
+#Include = /etc/pacman.d/mirrorlist
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post-process.sh b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post-process.sh
new file mode 100755
index 0000000..131b907
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post-process.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+echo $@
+INSTDIR=$1
+PROFILE=$2
+
+#everything below this point is specific to MythVantage
+cp -rp $PROFILE/post_process $INSTDIR/.tweak
+chroot $INSTDIR .tweak/tweak.sh
+rm -rf $INSTDIR/.tweak
+
+#find the size of the install.
+#This is used to calculate progress on the install
+tsize=`du -sm $INSTDIR/ | cut -f1`
+echo "TOTALSIZE=$tsize" > $INSTDIR/root/.install_size
+upsize=`du -sm --exclude data $INSTDIR/ |cut -f1`
+echo "UPGRADESIZE=$upsize" >> $INSTDIR/root/.install_size
+
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.bash_profile b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.bash_profile
new file mode 100644
index 0000000..c49349b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.bash_profile
@@ -0,0 +1 @@
+. $HOME/.bashrc
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.bashrc b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.bashrc
new file mode 100644
index 0000000..fcabce0
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.bashrc
@@ -0,0 +1,3 @@
+alias ls='ls --color=auto'
+PS1='[\u@\h \W]\$ '
+
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/apps b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/apps
new file mode 100644
index 0000000..52db7fe
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/apps
@@ -0,0 +1,2 @@
+[startup] {feh --bg-scale ~/.fluxbox/wallpaper.png}
+[startup] {mythfrontend}
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/init b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/init
new file mode 100644
index 0000000..aa4040a
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/init
@@ -0,0 +1,35 @@
+session.screen0.slit.placement: BottomRight
+session.screen0.slit.direction: Vertical
+session.screen0.slit.onTop: False
+session.screen0.slit.autoHide: True
+session.screen0.tab.placement: Top
+session.screen0.toolbar.onTop: False
+session.screen0.toolbar.visible: False
+session.screen0.toolbar.autoHide: False
+session.screen0.toolbar.placement: BottomCenter
+session.screen0.toolbar.widthPercent: 66
+session.screen0.workspaceNames: one,two,three,four
+session.screen0.strftimeFormat: %k:%M
+session.screen0.focusNewWindows: True
+session.screen0.focusModel: ClickToFocus
+session.screen0.fullMaximization: False
+session.screen0.edgeSnapThreshold: 0
+session.screen0.rowPlacementDirection: LeftToRight
+session.screen0.workspaces: 4
+session.screen0.focusLastWindow: True
+session.screen0.colPlacementDirection: TopToBottom
+session.screen0.windowPlacement: RowSmartPlacement
+session.screen0.tab.width: 64
+session.screen0.tab.height: 16
+session.screen0.showwindowposition: true
+session.opaqueMove: False
+session.autoRaiseDelay: 250
+session.menuFile: ~/.fluxbox/menu
+session.cacheLife: 5
+session.styleFile: /usr/share/fluxbox/styles/bora_black
+session.keyFile: ~/.fluxbox/keys
+session.colorsPerChannel: 4
+session.doubleClickInterval: 250
+session.cacheMax: 200
+session.imageDither: True
+session.configVersion: 1
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/menu b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/menu
new file mode 100644
index 0000000..858090e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/menu
@@ -0,0 +1,81 @@
+# Generated by fluxbox-generate_menu
+#
+# If you read this it means you want to edit this file manually, so here
+# are some useful tips:
+#
+# - You can add your own menu-entries to ~/.fluxbox/usermenu
+#
+# - If you miss apps please let me know and I will add them for the next
+# release.
+#
+# - The -r option prevents removing of empty menu entries and lines which
+# makes things much more readable.
+#
+# - To prevent any other app from overwriting your menu
+# you can change the menu name in .fluxbox/init to:
+# session.menuFile: /home/mythtv/.fluxbox/my-menu
+[begin] (Fluxbox)
+[encoding] {UTF-8}
+ [exec] (xterm) {xterm}
+ [exec] () {} execname is NULL; cannot lookup
+ [exec] (Run) {fbrun }
+[submenu] (Terminals)
+ [exec] (xterm) {xterm}
+[end]
+[submenu] (Editors)
+ [exec] (xedit) {xedit}
+ [exec] (nano) {xterm -e nano}
+ [exec] (vi) {xterm -e vi}
+[end]
+[submenu] (Multimedia)
+[submenu] (Audio)
+ [exec] (alsamixer) {xterm -e alsamixer}
+[end]
+[submenu] (Video)
+ [exec] (gmplayer) {gmplayer}
+[end]
+[submenu] (X-utils)
+ [exec] (xfontsel) {xfontsel}
+ [exec] (xman) {xman}
+ [exec] (xload) {xload}
+ [exec] (xbiff) {xbiff}
+ [exec] (xclock) {xclock}
+ [exec] (xmag) {xmag}
+ [exec] (Reload .Xdefaults) {xrdb -load /home/mythtv/.Xdefaults}
+[end]
+[end]
+[submenu] (Office)
+ [exec] (xclock) {xclock}
+ [exec] (xcalc) {xcalc}
+[end]
+[submenu] (Games)
+ [exec] (xeyes) {xeyes}
+[end]
+[submenu] (System Tools)
+ [exec] (top) {xterm -e top}
+[end]
+[submenu] (fluxbox menu)
+ [config] (Configure)
+[submenu] (System Styles) {Choose a style...}
+ [stylesdir] (/usr/share/fluxbox/styles)
+[end]
+[submenu] (User Styles) {Choose a style...}
+ [stylesdir] (~/.fluxbox/styles)
+[end]
+ [workspaces] (Workspace List)
+[submenu] (Tools)
+ [exec] (Window name) {xprop WM_CLASS|cut -d \" -f 2|xmessage -file - -center}
+ [exec] (Screenshot - JPG) {import screenshot.jpg && display -resize 50% screenshot.jpg}
+ [exec] (Screenshot - PNG) {import screenshot.png && display -resize 50% screenshot.png}
+ [exec] (Run) {fbrun }
+ [exec] (Regen Menu) {/usr/bin/fluxbox-generate_menu }
+[end]
+ [commanddialog] (Fluxbox Command)
+ [reconfig] (Reload config)
+ [restart] (Restart)
+ [exec] (About) {(fluxbox -v; fluxbox -info | sed 1d) 2> /dev/null | xmessage -file - -center}
+ [separator]
+ [exit] (Exit)
+[end]
+[endencoding]
+[end]
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/menuconfig b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/menuconfig
new file mode 100644
index 0000000..ef5b398
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/menuconfig
@@ -0,0 +1,65 @@
+# This file is read by fluxbox-generate_menu. If you don't like a
+# default you can change it here. Don't forget to remove the # in front
+# of the line.
+
+# Your favourite terminal. Put the command in quotes if you want to use
+# options. Put a backslash in before odd chars
+# MY_TERM='Eterm --tint \#123456'
+# MY_TERM='aterm -tint $(random_color)'
+
+# Your favourite browser. You can also specify options.
+# MY_BROWSER=mozilla
+
+# Name of the outputfile
+# MENUFILENAME=/home/mythtv/.fluxbox/menu
+
+# MENUTITLE=`fluxbox -version|cut -d " " -f-2`
+
+# standard url for console-browsers
+# HOMEPAGE=fluxbox.org
+
+# location with your own menu-entries
+# USERMENU=~/.fluxbox/usermenu
+
+# Put the launcher you would like to use here
+# LAUNCHER=fbrun
+# LAUNCHER=fbgm
+
+# Options for fbrun
+# FBRUNOPTIONS='-font 10x20 -fg grey -bg black -title run'
+
+# --- PREFIX'es
+# These are prefixes; So if fluxbox is installed in /usr/bin/fluxbox
+# your prefix is: /usr
+
+# fluxbox-generate already looks in /usr/X11R6, /usr, /usr/local and /opt so
+# there should be no need to specify them.
+#
+# PREFIX=/usr
+# GNOME_PREFIX=/opt/gnome
+# KDE_PREFIX=/opt/kde
+
+
+# Sepparate the list of background-dirs with semicolumns ':'
+# BACKGROUND_DIRS="/home/mythtv/.fluxbox/backgrounds/:/usr/share/fluxbox/backgrounds/:/usr/share/wallpapers"
+
+
+# --- Boolean variables.
+# Setting a variable to no'' won't help. Comment them out if you don't
+# want them. Setting are overruled by the command-line options.
+
+# Include all backgrounds in your backgrounds-directory
+# BACKGROUNDMENUITEM=yes
+
+# Include kde-menus
+# KDEMENU=yes
+
+# Include gnome-menus
+# GNOMEMENU=yes
+
+# enable sudo commands
+# DOSUDO=yes
+
+# Don't cleanup the menu
+# REMOVE=no
+
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/wallpaper.png b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/wallpaper.png
new file mode 100644
index 0000000..83da80c
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/wallpaper.png
Binary files differ
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.xinitrc b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.xinitrc
new file mode 100755
index 0000000..911e76e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.xinitrc
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+#
+# ~/.xinitrc
+#
+# Executed by startx (run your window manager from here)
+#
+
+# exec gnome-session
+# exec startkde
+# exec startxfce4
+# exec icewm
+# exec openbox
+# exec blackbox
+exec fluxbox
+# exec ratpoison
+# exec dwm
+# ... or any other WM of your choosing ...
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.xsession b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.xsession
new file mode 100755
index 0000000..a16dc0b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/home/mythtv/.xsession
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+#
+# ~/.xsession
+#
+# Executed by xdm/gdm/kdm at login
+#
+
+/bin/bash --login -i ~/.xinitrc
+
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/hosts.allow b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/hosts.allow
new file mode 100644
index 0000000..ca19dbb
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/hosts.allow
@@ -0,0 +1,7 @@
+#
+# /etc/hosts.allow
+#
+ALL: 192.168.
+ALL: 10.
+ALL: 127.0.0.1
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/hosts.deny b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/hosts.deny
new file mode 100755
index 0000000..ca30ab4
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/hosts.deny
@@ -0,0 +1,6 @@
+#
+# /etc/hosts.deny
+#
+ALL
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/menu.lst b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/menu.lst
new file mode 100755
index 0000000..ce33757
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/menu.lst
@@ -0,0 +1,60 @@
+# Config file for GRUB - The GNU GRand Unified Bootloader
+# /boot/grub/menu.lst
+
+# DEVICE NAME CONVERSIONS
+#
+# Linux Grub
+# -------------------------
+# /dev/fd0 (fd0)
+# /dev/hda (hd0)
+# /dev/hdb2 (hd1,1)
+# /dev/hda3 (hd0,2)
+#
+
+# FRAMEBUFFER RESOLUTION SETTINGS
+# +-------------------------------------------------+
+# | 640x480 800x600 1024x768 1280x1024
+# ----+--------------------------------------------
+# 256 | 0x301=769 0x303=771 0x305=773 0x307=775
+# 32K | 0x310=784 0x313=787 0x316=790 0x319=793
+# 64K | 0x311=785 0x314=788 0x317=791 0x31A=794
+# 16M | 0x312=786 0x315=789 0x318=792 0x31B=795
+# +-------------------------------------------------+
+
+# general configuration:
+timeout 5
+default 0
+#color light-blue/black light-cyan/blue
+
+# boot sections follow
+# each is implicitly numbered from 0 in the order of appearance below
+#
+# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
+#
+#-*
+hiddenmenu
+
+# (0) normal
+title LinHes
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit console=tty1
+initrd /boot/kernel26.img
+
+# (1) bootsplash
+title LinHes-splashy
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit quiet vga=0x318 splash=silent,theme:darch console=tty1
+initrd /boot/kernel26.img
+
+# (2) noautologin
+title STB-nologin
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit quiet vga=0x318 splash=silent,theme:darch console=tty1 noautologin
+initrd /boot/kernel26.img
+
+
+# (3) normal
+title LinHes-init
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro console=tty1
+initrd /boot/kernel26.img
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/rc.conf b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/rc.conf
new file mode 100755
index 0000000..1d5b377
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/rc.conf
@@ -0,0 +1,113 @@
+#
+# /etc/rc.conf - Main Configuration for Arch Linux
+#
+
+#
+# -----------------------------------------------------------------------
+# LOCALIZATION
+# -----------------------------------------------------------------------
+#
+# LOCALE: available languages can be listed with the 'locale -a' command
+# HARDWARECLOCK: set to "UTC" or "localtime"
+# TIMEZONE: timezones are found in /usr/share/zoneinfo
+# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
+# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
+# CONSOLEMAP: found in /usr/share/kbd/consoletrans
+# USECOLOR: use ANSI color sequences in startup messages
+#
+LOCALE="en_US.utf8"
+HARDWARECLOCK="UTC"
+TIMEZONE="US/Central"
+KEYMAP="us"
+CONSOLEFONT=
+CONSOLEMAP=
+USECOLOR="no"
+
+#
+# -----------------------------------------------------------------------
+# HARDWARE
+# -----------------------------------------------------------------------
+#
+# Scan hardware and load required modules at bootup
+MOD_AUTOLOAD="yes"
+if [ -f /etc/systemconfig ]
+then
+ . /etc/systemconfig
+fi
+
+if [ x$Audiotype = xOSS -a ! -f /tmp/.alsatest ]
+then
+ ALSABLACKLIST="soundcore"
+else
+ if [ x$Audiotype = xOSS ]
+ then
+ ALSABLACKLIST="soundcore"
+ else
+ ALSABLACKLIST=""
+ fi
+fi
+
+# Module Blacklist - modules in this list will never be loaded by udev
+MOD_BLACKLIST=($ALSABLACKLIST)
+#
+# Modules to load at boot-up (in this order)
+# - prefix a module with a ! to blacklist it
+#
+MODULES=()
+# Scan for LVM volume groups at startup, required if you use LVM
+USELVM="no"
+
+#
+# -----------------------------------------------------------------------
+# NETWORKING
+# -----------------------------------------------------------------------
+#
+HOSTNAME=`cat /etc/hostname`
+
+#The following is only used on the install. After the first boot everything is set from /etc/net.
+
+
+#
+# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available
+# interfaces.
+#
+# Interfaces to start at boot-up (in this order)
+# Declare each interface then list in INTERFACES
+# - prefix an entry in INTERFACES with a ! to disable it
+# - no hyphens in your interface names - Bash doesn't like it
+#
+# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
+#
+lo="lo 127.0.0.1"
+#eth0="dhcp"
+INTERFACES=(lo )
+#
+# Routes to start at boot-up (in this order)
+# Declare each route then list in ROUTES
+# - prefix an entry in ROUTES with a ! to disable it
+#
+gateway="default gw 192.168.0.1"
+ROUTES=(!gateway)
+#
+# Enable these network profiles at boot-up. These are only useful
+# if you happen to need multiple network configurations (ie, laptop users)
+# - set to 'menu' to present a menu during boot-up (dialog package required)
+# - prefix an entry with a ! to disable it
+#
+# Network profiles are found in /etc/network-profiles
+#
+#NET_PROFILES=(main)
+
+#
+# -----------------------------------------------------------------------
+# DAEMONS
+# -----------------------------------------------------------------------
+#
+# Daemons to start at boot-up (in this order)
+# - prefix a daemon with a ! to disable it
+# - prefix a daemon with a @ to start it up in the background
+#
+#DAEMONS=(syslog-ng network netfs crond)
+DAEMONS=(!syslog-ng !hotplug !pcmcia network mysqld dbus avahi-daemon)
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/rc.shutdown b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/rc.shutdown
new file mode 100755
index 0000000..1a8cdbe
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/rc.shutdown
@@ -0,0 +1,104 @@
+#!/bin/bash
+#
+# /etc/rc.shutdown
+#
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+# avoid staircase effect
+/bin/stty onlcr
+
+echo " "
+printhl "Initiating Shutdown..."
+echo " "
+
+if [ -x /etc/rc.local.shutdown ]; then
+ /etc/rc.local.shutdown
+fi
+
+if [ "$PREVLEVEL" = "3" -o "$PREVLEVEL" = "5" ]; then
+ # Shutdown daemons
+ let i=${#DAEMONS[@]}
+ while [[ i -ge 0 ]]; do
+ if [[ `echo ${DAEMONS[$i]} | grep '^[^\!]' | wc -l` -eq 1 ]]; then
+ /etc/rc.d/${DAEMONS[$i]#@} stop
+ fi
+ let i=i-1
+ done
+ # find any leftover daemons and shut them down
+ if [ -d /var/run/daemons ]; then
+ for daemon in `ls /var/run/daemons`; do
+ /etc/rc.d/$daemon stop
+ done
+ fi
+fi
+
+# Terminate all processes
+stat_busy "Sending SIGTERM To Processes"
+/sbin/killall5 -15 &> /dev/null
+/bin/sleep 5
+stat_done
+
+stat_busy "Sending SIGKILL To Processes"
+/sbin/killall5 -9 &> /dev/null
+/bin/sleep 1
+stat_done
+
+stat_busy "Saving Random Seed"
+/bin/dd if=/dev/urandom of=/var/run/random-seed count=1 bs=512 2> /dev/null
+stat_done
+
+stat_busy "Saving System Clock"
+if [ "$HARDWARECLOCK" = "UTC" ]; then
+ /sbin/hwclock --directisa --utc --systohc
+else
+ /sbin/hwclock --directisa --localtime --systohc
+fi
+stat_done
+
+# removing psmouse module to fix some reboot issues on newer laptops
+modprobe -r psmouse >/dev/null 2>&1
+
+# Write to wtmp file before unmounting
+/sbin/halt -w
+
+stat_busy "Deactivating Swap"
+/sbin/swapoff -a
+stat_done
+
+stat_busy "Unmounting Filesystems"
+/bin/umount -a
+stat_done
+
+if [ "$USELVM" = "yes" -o "$USELVM" = "YES" ]; then
+ if [ -d /etc/lvm -a -x /sbin/lvm ]; then
+ /bin/mount -n -t sysfs none /sys 2>/dev/null
+ if [ -d /sys/block ]; then
+ stat_busy "Deactivating LVM2 groups"
+ /sbin/lvm vgchange --ignorelockingfailure -a n
+ stat_done
+ umount /sys
+ fi
+ fi
+fi
+
+stat_busy "Remounting Root Filesystem Read-only"
+/bin/mount -n -o remount,ro /
+stat_done
+exit 0
+# Power off or reboot
+if [ "$RUNLEVEL" = "0" ]; then
+ printsep
+ printhl "${C_H2}POWER OFF"
+ /sbin/poweroff -d -f -h -i
+else
+ printsep
+ printhl "${C_H2}REBOOTING"
+ # adding kexec support
+ [ -x /usr/sbin/kexec ] && /usr/sbin/kexec -e > /dev/null 2>&1
+ /sbin/reboot -d -f -i
+fi
+
+# End of file
+# vim: set ts=2 noet:
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/tweak.sh b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/tweak.sh
new file mode 100755
index 0000000..5c73cf4
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/post_process/tweak.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+useradd -m -s /bin/bash mythtv -G audio,video,optical,storage,users
+echo 'setting mythtv password to "a" '
+passwd mythtv <<EOF
+a
+a
+EOF
+
+echo 'setting root password to "a" '
+passwd root <<EOF
+a
+a
+EOF
+
+#edit /home/mythtv/.xinitrc and uncomment exec fluxbox
+cp -rvpf /.tweak/home/mythtv /home/
+
+
+
+chown -R mythtv.mythtv /home/mythtv/
+
+
+
+cp -f /.tweak/hosts.allow /etc/hosts.allow
+cp -f /.tweak/securetty /etc/securetty
+cp -f /.tweak/rc.conf /etc/rc.conf
+#cp -f rc.local /etc/rc.local
+#cp -f locale.gen /etc/locale.gen
+
+cp -f /.tweak/rc.shutdown /etc/rc.shutdown
+cp -f /.tweak/menu.lst /boot/grub/menu.lst
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/pre-process.sh b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/pre-process.sh
new file mode 100755
index 0000000..5bc1f9c
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/pre-process.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+rm -f overlay.xpk
+if [ -d overlay/home/mythtv ]
+then
+ chown -R 1000 overlay/home/mythtv
+fi
+./create_overlay.sh
+
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rcconfx b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rcconfx
new file mode 100644
index 0000000..23e671e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rcconfx
@@ -0,0 +1,19 @@
+#
+# patch file for /etc/rc.conf
+#
+
+LOCALE="en_US.utf8"
+HARDWARECLOCK="UTC"
+TIMEZONE="UTC"
+KEYMAP="us"
+
+MODULES=(floppy)
+
+HOSTNAME="larch5"
+
+USELVM="yes"
+
+#eth0="dhcp"
+
+DAEMONS=(syslog-ng network mysqld dbus hal !slim sshd)
+SPLASH="splashy"
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/X11/xinit/startx.custom b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/X11/xinit/startx.custom
new file mode 100644
index 0000000..8e3ec5e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/X11/xinit/startx.custom
@@ -0,0 +1,22 @@
+if grep -v nox /proc/cmdline &>/dev/null && \
+ [ -z "$DISPLAY" ] && echo $(tty) | grep /vc/1 &>/dev/null; then
+ if grep i810 /proc/cmdline &>/dev/null; then
+ startx -- -config xorg.conf.i810
+ else
+ startx
+ fi
+
+ # Maybe there should be some code here to handle a failed startx?
+
+ # The 'return' value is at /tmp/xlogout
+ # If there is nothing there, switch user to 'newuser'
+ # If there is also nothing there, login as root
+ # - if already root, fall through to terminal
+
+ if [ -f /tmp/xlogout ] || [ -f /tmp/newuser ]; then
+ logout
+ elif [ ${UID} -ne 0 ]; then
+ echo "root" >/tmp/newuser
+ logout
+ fi
+fi
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/X11/xinit/xinitrc.custom b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/X11/xinit/xinitrc.custom
new file mode 100644
index 0000000..5f04171
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/X11/xinit/xinitrc.custom
@@ -0,0 +1,4 @@
+# Set the keymap
+xkmap-set
+
+exec fluxbox
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf
new file mode 100644
index 0000000..6d11b2e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf
@@ -0,0 +1,49 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ Identifier "Card0"
+ Driver "vesa"
+EndSection
+
+Section "Monitor"
+ Identifier "Monitor0"
+ HorizSync 30.0 - 65.0
+ VertRefresh 50.0 - 75.0
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ DefaultDepth 16
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ Modes "1024x768" "800x600"
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf.i810 b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf.i810
new file mode 100644
index 0000000..9615569
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf.i810
@@ -0,0 +1,59 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ ### Available Driver options are:-
+ ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
+ ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
+ ### [arg]: arg optional
+ #Option "NoAccel" # [<bool>]
+ #Option "SWcursor" # [<bool>]
+ #Option "ColorKey" # <i>
+ #Option "CacheLines" # <i>
+ #Option "Dac6Bit" # [<bool>]
+ #Option "DRI" # [<bool>]
+ #Option "NoDDC" # [<bool>]
+ #Option "ShowCache" # [<bool>]
+ #Option "XvMCSurfaces" # <i>
+ #Option "PageFlip" # [<bool>]
+ Option "DRI" "False"
+ #Option "AccelMethod" "exa"
+ #Option "MigrationHeuristic" "greedy"
+ #Option "ExaNoComposite" "False"
+ Identifier "Card0"
+ Driver "intel"
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf.i810.2 b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf.i810.2
new file mode 100644
index 0000000..a295b38
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf.i810.2
@@ -0,0 +1,67 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ ### Available Driver options are:-
+ ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
+ ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
+ ### [arg]: arg optional
+ #Option "NoAccel" # [<bool>]
+ #Option "SWcursor" # [<bool>]
+ #Option "ColorKey" # <i>
+ #Option "CacheLines" # <i>
+ #Option "Dac6Bit" # [<bool>]
+ #Option "DRI" # [<bool>]
+ #Option "NoDDC" # [<bool>]
+ #Option "ShowCache" # [<bool>]
+ #Option "XvMCSurfaces" # <i>
+ #Option "PageFlip" # [<bool>]
+ Option "DRI" "False"
+ #Option "AccelMethod" "exa"
+ #Option "MigrationHeuristic" "greedy"
+ #Option "ExaNoComposite" "False"
+ Identifier "Card0"
+ Driver "intel"
+EndSection
+
+Section "Monitor"
+ Identifier "Monitor0"
+ HorizSync 30.0 - 65.0
+ VertRefresh 50.0 - 75.0
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ DefaultDepth 16
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ Modes "1024x768" "800x600"
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf.vesa b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf.vesa
new file mode 100644
index 0000000..6d11b2e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf.vesa
@@ -0,0 +1,49 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ Identifier "Card0"
+ Driver "vesa"
+EndSection
+
+Section "Monitor"
+ Identifier "Monitor0"
+ HorizSync 30.0 - 65.0
+ VertRefresh 50.0 - 75.0
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ DefaultDepth 16
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ Modes "1024x768" "800x600"
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/conf.d/dhcpcd b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/conf.d/dhcpcd
new file mode 100644
index 0000000..ab53c30
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/conf.d/dhcpcd
@@ -0,0 +1,6 @@
+#
+# Arguments to be passed to the DHCP client daemon
+#
+
+DHCPCD_ARGS="-t 10 -h $HOSTNAME"
+
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/hosts.allow b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/hosts.allow
new file mode 100644
index 0000000..19bc4d8
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/hosts.allow
@@ -0,0 +1,13 @@
+#
+# /etc/hosts.allow
+#
+
+ALL: 127.0.0.1
+
+# To allow ssh in from anywhere
+sshd: ALL
+
+# To allow ssh in from local net (example)
+#sshd: 192.168.178.0/255.255.255.0
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/inittab b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/inittab
new file mode 100644
index 0000000..2de483f
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/inittab
@@ -0,0 +1,43 @@
+#
+# /etc/inittab
+#
+
+# Runlevels:
+# 0 Halt
+# 1(S) Single-user
+# 2 Not used
+# 3 Multi-user
+# 4 Not used
+# 5 X11
+# 6 Reboot
+
+## Only one of the following two lines can be uncommented!
+# Boot to console
+id:5:initdefault:
+# Boot to X11
+#id:5:initdefault:
+
+rc::sysinit:/etc/rc.sysinit
+rs:S1:wait:/etc/rc.single
+rm:2345:wait:/etc/rc.multi
+rh:06:wait:/etc/rc.shutdown
+su:S:wait:/sbin/sulogin -p
+
+# -8 options fixes umlauts problem on login
+c1:2345:respawn:/sbin/agetty -8 38400 vc/1 linux -n -l /etc/ulogin
+c2:2345:respawn:/sbin/agetty -8 38400 vc/2 linux
+c3:2345:respawn:/sbin/agetty -8 38400 vc/3 linux
+c4:2345:respawn:/sbin/agetty -8 38400 vc/4 linux
+c5:2345:respawn:/sbin/agetty -8 38400 vc/5 linux
+c6:2345:respawn:/sbin/agetty -8 38400 vc/6 linux
+c7:5:respawn:/usr/bin/openvt -fwc 6 -- /bin/su - mythtv -c /usr/bin/startx >& /dev/null
+
+ca::ctrlaltdel:/sbin/shutdown -t3 -r now
+
+# Example lines for starting a login manager
+#x:5:respawn:/usr/bin/xdm -nodaemon
+#x:5:respawn:/usr/sbin/gdm -nodaemon
+#x:5:respawn:/opt/kde/bin/kdm -nodaemon
+#x:5:respawn:/usr/bin/slim >& /dev/null
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/inittab.larchsave b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/inittab.larchsave
new file mode 100644
index 0000000..2de483f
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/inittab.larchsave
@@ -0,0 +1,43 @@
+#
+# /etc/inittab
+#
+
+# Runlevels:
+# 0 Halt
+# 1(S) Single-user
+# 2 Not used
+# 3 Multi-user
+# 4 Not used
+# 5 X11
+# 6 Reboot
+
+## Only one of the following two lines can be uncommented!
+# Boot to console
+id:5:initdefault:
+# Boot to X11
+#id:5:initdefault:
+
+rc::sysinit:/etc/rc.sysinit
+rs:S1:wait:/etc/rc.single
+rm:2345:wait:/etc/rc.multi
+rh:06:wait:/etc/rc.shutdown
+su:S:wait:/sbin/sulogin -p
+
+# -8 options fixes umlauts problem on login
+c1:2345:respawn:/sbin/agetty -8 38400 vc/1 linux -n -l /etc/ulogin
+c2:2345:respawn:/sbin/agetty -8 38400 vc/2 linux
+c3:2345:respawn:/sbin/agetty -8 38400 vc/3 linux
+c4:2345:respawn:/sbin/agetty -8 38400 vc/4 linux
+c5:2345:respawn:/sbin/agetty -8 38400 vc/5 linux
+c6:2345:respawn:/sbin/agetty -8 38400 vc/6 linux
+c7:5:respawn:/usr/bin/openvt -fwc 6 -- /bin/su - mythtv -c /usr/bin/startx >& /dev/null
+
+ca::ctrlaltdel:/sbin/shutdown -t3 -r now
+
+# Example lines for starting a login manager
+#x:5:respawn:/usr/bin/xdm -nodaemon
+#x:5:respawn:/usr/sbin/gdm -nodaemon
+#x:5:respawn:/opt/kde/bin/kdm -nodaemon
+#x:5:respawn:/usr/bin/slim >& /dev/null
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/larch-shutdown b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/larch-shutdown
new file mode 100644
index 0000000..d614d4b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/larch-shutdown
@@ -0,0 +1,47 @@
+# Functions used by rc.shutdown
+# Modified versions for larch live systems
+
+f_saveclock ()
+{
+ :
+}
+
+f_swapoff ()
+{
+ ############################# Include session saving functions
+ # . /opt/larch-live/session-save/shutdown2
+ # if [ -f /tmp/checkse ]; then
+ # . /tmp/checkse
+ #else
+ # checkse
+ # fi
+
+ if [ -n "${saving}" ] && ! session_save; then
+ echo
+ echo "If you know what you are doing, you may be able to recover"
+ echo "something from this unpleasant situation."
+ echo
+ echo "You may use the command line to investigate further ..."
+ echo
+ echo "When finished please enter 'exit', the shutdown process will"
+ echo "then continue."
+ sh -i
+ fi
+
+ #############################
+
+ stat_busy "Deactivating Swap"
+ /sbin/swapoff -a
+ stat_done
+}
+
+f_remountro ()
+{
+ if [ -n "${ejectdev}" ]; then
+ echo "Ejecting live CD"
+ eject ${ejectdev}
+ echo "sleeping for 6 seconds"
+ sleep 6
+
+ fi
+}
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/ppp/options b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/ppp/options
new file mode 100644
index 0000000..237c390
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/ppp/options
@@ -0,0 +1,352 @@
+# /etc/ppp/options
+#
+# Originally created by Jim Knoble <jmknoble@mercury.interpath.net>
+# Modified for Debian by alvar Bray <alvar@meiko.co.uk>
+# Modified for PPP Server setup by Christoph Lameter <clameter@debian.org>
+# Modified for ArchLinux by Manolis Tzanidakis <manolis@archlinux.org>
+#
+# To quickly see what options are active in this file, use this command:
+# egrep -v '#|^ *$' /etc/ppp/options
+
+# Specify which DNS Servers the incoming Win95 or WinNT Connection should use
+# Two Servers can be remotely configured
+# ms-dns 192.168.1.1
+# ms-dns 192.168.1.2
+
+# Specify which WINS Servers the incoming connection Win95 or WinNT should use
+# ms-wins 192.168.1.50
+# ms-wins 192.168.1.51
+
+# Run the executable or shell command specified after pppd has
+# terminated the link. This script could, for example, issue commands
+# to the modem to cause it to hang up if hardware modem control signals
+# were not available.
+#disconnect "chat -- \d+++\d\c OK ath0 OK"
+
+# async character map -- 32-bit hex; each bit is a character
+# that needs to be escaped for pppd to receive it. 0x00000001
+# represents '\x01', and 0x80000000 represents '\x1f'.
+asyncmap 0
+
+# Require the peer to authenticate itself before allowing network
+# packets to be sent or received.
+# Please do not disable this setting. It is expected to be standard in
+# future releases of pppd. Use the call option (see manpage) to disable
+# authentication for specific peers.
+#auth
+
+# Use hardware flow control (i.e. RTS/CTS) to control the flow of data
+# on the serial port.
+crtscts
+
+# Use software flow control (i.e. XON/XOFF) to control the flow of data
+# on the serial port.
+#xonxoff
+
+# Specifies that certain characters should be escaped on transmission
+# (regardless of whether the peer requests them to be escaped with its
+# async control character map). The characters to be escaped are
+# specified as a list of hex numbers separated by commas. Note that
+# almost any character can be specified for the escape option, unlike
+# the asyncmap option which only allows control characters to be
+# specified. The characters which may not be escaped are those with hex
+# values 0x20 - 0x3f or 0x5e.
+#escape 11,13,ff
+
+# Don't use the modem control lines.
+#local
+
+# Specifies that pppd should use a UUCP-style lock on the serial device
+# to ensure exclusive access to the device.
+lock
+
+# Don't show the passwords when logging the contents of PAP packets.
+# This is the default.
+hide-password
+
+# When logging the contents of PAP packets, this option causes pppd to
+# show the password string in the log message.
+#show-password
+
+# Use the modem control lines. On Ultrix, this option implies hardware
+# flow control, as for the crtscts option. (This option is not fully
+# implemented.)
+modem
+
+# Set the MRU [Maximum Receive Unit] value to <n> for negotiation. pppd
+# will ask the peer to send packets of no more than <n> bytes. The
+# minimum MRU value is 128. The default MRU value is 1500. A value of
+# 296 is recommended for slow links (40 bytes for TCP/IP header + 256
+# bytes of data).
+#mru 542
+
+# Set the interface netmask to <n>, a 32 bit netmask in "decimal dot"
+# notation (e.g. 255.255.255.0).
+#netmask 255.255.255.0
+
+# Disables the default behaviour when no local IP address is specified,
+# which is to determine (if possible) the local IP address from the
+# hostname. With this option, the peer will have to supply the local IP
+# address during IPCP negotiation (unless it specified explicitly on the
+# command line or in an options file).
+#noipdefault
+
+# Enables the "passive" option in the LCP. With this option, pppd will
+# attempt to initiate a connection; if no reply is received from the
+# peer, pppd will then just wait passively for a valid LCP packet from
+# the peer (instead of exiting, as it does without this option).
+#passive
+
+# With this option, pppd will not transmit LCP packets to initiate a
+# connection until a valid LCP packet is received from the peer (as for
+# the "passive" option with old versions of pppd).
+#silent
+
+# Don't request or allow negotiation of any options for LCP and IPCP
+# (use default values).
+#-all
+
+# Disable Address/Control compression negotiation (use default, i.e.
+# address/control field disabled).
+#-ac
+
+# Disable asyncmap negotiation (use the default asyncmap, i.e. escape
+# all control characters).
+#-am
+
+# Don't fork to become a background process (otherwise pppd will do so
+# if a serial device is specified).
+#-detach
+
+# Disable IP address negotiation (with this option, the remote IP
+# address must be specified with an option on the command line or in
+# an options file).
+#-ip
+
+# Disable IPCP negotiation and IP communication. This option should
+# only be required if the peer is buggy and gets confused by requests
+# from pppd for IPCP negotiation.
+#noip
+
+# Disable magic number negotiation. With this option, pppd cannot
+# detect a looped-back line.
+#-mn
+
+# Disable MRU [Maximum Receive Unit] negotiation (use default, i.e.
+# 1500).
+#-mru
+
+# Disable protocol field compression negotiation (use default, i.e.
+# protocol field compression disabled).
+#-pc
+
+# Require the peer to authenticate itself using PAP.
+#+pap
+
+# Don't agree to authenticate using PAP.
+#-pap
+
+# Require the peer to authenticate itself using CHAP [Cryptographic
+# Handshake Authentication Protocol] authentication.
+#+chap
+
+# Don't agree to authenticate using CHAP.
+#-chap
+
+# Disable negotiation of Van Jacobson style IP header compression (use
+# default, i.e. no compression).
+#-vj
+
+# Increase debugging level (same as -d). If this option is given, pppd
+# will log the contents of all control packets sent or received in a
+# readable form. The packets are logged through syslog with facility
+# daemon and level debug. This information can be directed to a file by
+# setting up /etc/syslog.conf appropriately (see syslog.conf(5)). (If
+# pppd is compiled with extra debugging enabled, it will log messages
+# using facility local2 instead of daemon).
+#debug
+
+# Append the domain name <d> to the local host name for authentication
+# purposes. For example, if gethostname() returns the name porsche,
+# but the fully qualified domain name is porsche.Quotron.COM, you would
+# use the domain option to set the domain name to Quotron.COM.
+#domain <d>
+
+# Enable debugging code in the kernel-level PPP driver. The argument n
+# is a number which is the sum of the following values: 1 to enable
+# general debug messages, 2 to request that the contents of received
+# packets be printed, and 4 to request that the contents of transmitted
+# packets be printed.
+#kdebug n
+
+# Set the MTU [Maximum Transmit Unit] value to <n>. Unless the peer
+# requests a smaller value via MRU negotiation, pppd will request that
+# the kernel networking code send data packets of no more than n bytes
+# through the PPP network interface.
+#mtu <n>
+
+# Set the name of the local system for authentication purposes to <n>.
+# This is a privileged option. With this option, pppd will use lines in the
+# secrets files which have <n> as the second field when looking for a
+# secret to use in authenticating the peer. In addition, unless overridden
+# with the user option, <n> will be used as the name to send to the peer
+# when authenticating the local system to the peer. (Note that pppd does
+# not append the domain name to <n>.)
+#name <n>
+
+# Enforce the use of the hostname as the name of the local system for
+# authentication purposes (overrides the name option).
+#usehostname
+
+# Set the assumed name of the remote system for authentication purposes
+# to <n>.
+#remotename <n>
+
+# Add an entry to this system's ARP [Address Resolution Protocol]
+# table with the IP address of the peer and the Ethernet address of this
+# system.
+proxyarp
+
+# Use the system password database for authenticating the peer using
+# PAP. Note: mgetty already provides this option. If this is specified
+# then dialin from users using a script under Linux to fire up ppp wont work.
+# login
+
+# If this option is given, pppd will send an LCP echo-request frame to the
+# peer every n seconds. Normally the peer should respond to the echo-request
+# by sending an echo-reply. This option can be used with the
+# lcp-echo-failure option to detect that the peer is no longer connected.
+lcp-echo-interval 30
+
+# If this option is given, pppd will presume the peer to be dead if n
+# LCP echo-requests are sent without receiving a valid LCP echo-reply.
+# If this happens, pppd will terminate the connection. Use of this
+# option requires a non-zero value for the lcp-echo-interval parameter.
+# This option can be used to enable pppd to terminate after the physical
+# connection has been broken (e.g., the modem has hung up) in
+# situations where no hardware modem control lines are available.
+lcp-echo-failure 4
+
+# Set the LCP restart interval (retransmission timeout) to <n> seconds
+# (default 3).
+#lcp-restart <n>
+
+# Set the maximum number of LCP terminate-request transmissions to <n>
+# (default 3).
+#lcp-max-terminate <n>
+
+# Set the maximum number of LCP configure-request transmissions to <n>
+# (default 10).
+#lcp-max-configure <n>
+
+# Set the maximum number of LCP configure-NAKs returned before starting
+# to send configure-Rejects instead to <n> (default 10).
+#lcp-max-failure <n>
+
+# Set the IPCP restart interval (retransmission timeout) to <n>
+# seconds (default 3).
+#ipcp-restart <n>
+
+# Set the maximum number of IPCP terminate-request transmissions to <n>
+# (default 3).
+#ipcp-max-terminate <n>
+
+# Set the maximum number of IPCP configure-request transmissions to <n>
+# (default 10).
+#ipcp-max-configure <n>
+
+# Set the maximum number of IPCP configure-NAKs returned before starting
+# to send configure-Rejects instead to <n> (default 10).
+#ipcp-max-failure <n>
+
+# Set the PAP restart interval (retransmission timeout) to <n> seconds
+# (default 3).
+#pap-restart <n>
+
+# Set the maximum number of PAP authenticate-request transmissions to
+# <n> (default 10).
+#pap-max-authreq <n>
+
+# Set the maximum time that pppd will wait for the peer to authenticate
+# itself with PAP to <n> seconds (0 means no limit).
+#pap-timeout <n>
+
+# Set the CHAP restart interval (retransmission timeout for
+# challenges) to <n> seconds (default 3).
+#chap-restart <n>
+
+# Set the maximum number of CHAP challenge transmissions to <n>
+# (default 10).
+#chap-max-challenge
+
+# If this option is given, pppd will rechallenge the peer every <n>
+# seconds.
+#chap-interval <n>
+
+# With this option, pppd will accept the peer's idea of our local IP
+# address, even if the local IP address was specified in an option.
+#ipcp-accept-local
+
+# With this option, pppd will accept the peer's idea of its (remote) IP
+# address, even if the remote IP address was specified in an option.
+#ipcp-accept-remote
+
+# Disable the IPXCP and IPX protocols.
+# To let pppd pass IPX packets comment this out --- you'll probably also
+# want to install ipxripd, and have the Internal IPX Network option enabled
+# in your kernel. /usr/doc/HOWTO/IPX-HOWTO.gz contains more info.
+noipx
+
+# Exit once a connection has been made and terminated. This is the default,
+# unless the `persist' or `demand' option has been specified.
+#nopersist
+
+# Do not exit after a connection is terminated; instead try to reopen
+# the connection.
+#persist
+
+# Terminate after n consecutive failed connection attempts.
+# A value of 0 means no limit. The default value is 10.
+#maxfail <n>
+
+# Initiate the link only on demand, i.e. when data traffic is present.
+# With this option, the remote IP address must be specified by the user on
+# the command line or in an options file. Pppd will initially configure
+# the interface and enable it for IP traffic without connecting to the peer.
+# When traffic is available, pppd will connect to the peer and perform
+# negotiation, authentication, etc. When this is completed, pppd will
+# commence passing data packets (i.e., IP packets) across the link.
+#demand
+
+# Specifies that pppd should disconnect if the link is idle for <n> seconds.
+# The link is idle when no data packets (i.e. IP packets) are being sent or
+# received. Note: it is not advisable to use this option with the persist
+# option without the demand option. If the active-filter option is given,
+# data packets which are rejected by the specified activity filter also
+# count as the link being idle.
+#idle <n>
+
+# Specifies how many seconds to wait before re-initiating the link after
+# it terminates. This option only has any effect if the persist or demand
+# option is used. The holdoff period is not applied if the link was
+# terminated because it was idle.
+#holdoff <n>
+
+# Wait for up n milliseconds after the connect script finishes for a valid
+# PPP packet from the peer. At the end of this time, or when a valid PPP
+# packet is received from the peer, pppd will commence negotiation by
+# sending its first LCP packet. The default value is 1000 (1 second).
+# This wait period only applies if the connect or pty option is used.
+#connect-delay <n>
+
+# Packet filtering: for more information, see pppd(8)
+# Any packets matching the filter expression will be interpreted as link
+# activity, and will cause a "demand" connection to be activated, and reset
+# the idle connection timer. (idle option)
+# The filter expression is akin to that of tcpdump(1)
+#active-filter <filter-expression>
+
+# uncomment the line below this if you use PPPoE
+#plugin /usr/lib/pppd/plugins/pppoe.so
+
+# ---<End of File>---
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/rc.local b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/rc.local
new file mode 100755
index 0000000..216ec8e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/rc.local
@@ -0,0 +1,16 @@
+#!/bin/bash
+#
+# /etc/rc.local: Local multi-user startup script.
+#
+
+#install initial database
+pacman -S --noconfirm mythdb-initial 2>/dev/null
+
+# Set up automatically logged in user (larch live system only)
+if [ -f /.livesys/autologin ]; then
+ cp /.livesys/autologin /tmp/newuser
+fi
+
+# Restore saved sound volume, etc.
+#alsactl restore
+#install initial database
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/rc.local.orig b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/rc.local.orig
new file mode 100755
index 0000000..47b24ef
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/rc.local.orig
@@ -0,0 +1,7 @@
+#!/bin/bash
+#
+# /etc/rc.local: Local multi-user startup script.
+#
+
+# Restore saved sound volume, etc.
+alsactl restore
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/rc.local.shutdown b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/rc.local.shutdown
new file mode 100755
index 0000000..2b5f735
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/rc.local.shutdown
@@ -0,0 +1,7 @@
+#!/bin/bash
+#
+# /etc/rc.local.shutdown: Local shutdown script.
+#
+
+# Save sound volume, etc.
+alsactl store
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/skel/.bash_profile b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/skel/.bash_profile
new file mode 100644
index 0000000..600bd9b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/skel/.bash_profile
@@ -0,0 +1,3 @@
+. $HOME/.bashrc
+
+. /etc/X11/xinit/startx.custom
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/skel/.bashrc b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/skel/.bashrc
new file mode 100644
index 0000000..fcabce0
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/skel/.bashrc
@@ -0,0 +1,3 @@
+alias ls='ls --color=auto'
+PS1='[\u@\h \W]\$ '
+
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/skel/.xinitrc b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/skel/.xinitrc
new file mode 100644
index 0000000..c6febe5
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/skel/.xinitrc
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+#
+# ~/.xinitrc
+#
+# Executed by startx (run your window manager from here)
+#
+
+# exec gnome-session
+# exec startkde
+# exec startxfce4
+# exec icewm
+# exec openbox
+# exec blackbox
+exec fluxbox
+# exec ratpoison
+# exec dwm
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/skel/.xsession b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/skel/.xsession
new file mode 100755
index 0000000..a16dc0b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/skel/.xsession
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+#
+# ~/.xsession
+#
+# Executed by xdm/gdm/kdm at login
+#
+
+/bin/bash --login -i ~/.xinitrc
+
diff --git a/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/slim.conf b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/slim.conf
new file mode 100644
index 0000000..35ed579
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-RELEASE-REMOTE/rootoverlay/etc/slim.conf
@@ -0,0 +1,79 @@
+# Path, X server and arguments (if needed)
+# Note: -xauth $authfile is automatically appended
+default_path ./:/bin:/usr/bin:/usr/local/bin:/usr/bin
+default_xserver /usr/bin/X
+xserver_arguments -nolisten tcp vt07
+
+# Commands for halt, login, etc.
+halt_cmd /sbin/shutdown -h now
+reboot_cmd /sbin/shutdown -r now
+console_cmd /usr/bin/terminal -x /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
+#suspend_cmd /usr/sbin/suspend
+
+# Full path to the xauth binary
+xauth_path /usr/bin/xauth
+
+# Xauth file for server
+authfile /var/run/slim.auth
+
+
+# Activate numlock when slim starts. Valid values: on|off
+# numlock on
+
+# Hide the mouse cursor (note: does not work with some WMs).
+# Valid values: true|false
+# hidecursor false
+
+# This command is executed after a succesful login.
+# you can place the %session and %theme variables
+# to handle launching of specific commands in .xinitrc
+# depending of chosen session and slim theme
+#
+# NOTE: if your system does not have bash you need
+# to adjust the command according to your preferred shell,
+# i.e. for freebsd use:
+# login_cmd exec /bin/sh - ~/.xinitrc %session
+login_cmd exec /bin/bash -login ~/.xinitrc %session
+
+# Commands executed when starting and exiting a session.
+# They can be used for registering a X11 session with
+# sessreg. You can use the %user variable
+#
+# sessionstart_cmd some command
+# sessionstop_cmd some command
+
+# Start in daemon mode. Valid values: yes | no
+# Note that this can overridden by the command line
+# option "-d"
+# daemon yes
+
+# Available sessions (first one is the default).
+# The current chosen session name is replaced in the login_cmd
+# above, so your login command can handle different sessions.
+# see the xinitrc.sample file shipped with slim sources
+sessions xfce4,icewm,wmaker,blackbox
+
+# Executed when pressing F11 (requires imagemagick)
+screenshot_cmd import -window root /slim.png
+
+# welcome message. Available variables: %host, %domain
+welcome_msg Welcome to %host
+
+# shutdown / reboot messages
+shutdown_msg The system is halting...
+reboot_msg The system is rebooting...
+
+# default user, leave blank or remove this line
+# for avoid pre-loading the username.
+#default_user simone
+
+# current theme, use comma separated list to specify a set to
+# randomly choose from
+current_theme dlarch
+
+# Lock file
+lockfile /var/lock/slim.lock
+
+# Log file
+logfile /var/log/slim.log
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/addedpacks b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/addedpacks
new file mode 100644
index 0000000..6668d64
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/addedpacks
@@ -0,0 +1,170 @@
+# These are needed to build a live CD
+linhes-live
+squashfs-tools
+lzop
+
+syslinux
+
+# You need a kernel.
+#kernel26 is now in 'base'
+aufs
+
+# To eject a cd
+eject
+
+# Useful for use as installer, etc.
+#ntfsprogs
+#parted
+
+#ddcxinfo-knoppix
+#hwd
+
+sudo
+
+lsof
+cdrkit
+dvd+rw-tools
+
+# Needed by the installer
+#python
+
+#base-devel
+#larch
+
+# generally useful tools which don't require X
+#mtools is required by syslinux
+openssh
+dosfstools
+alsa-lib
+alsa-oss
+alsa-utils
+cdparanoia
+cdrdao
+
+# Xorg packages
+xorg-server
+xorg-xkb-utils
+xorg-xauth
+xorg-server-utils
+xorg-xinit
+xorg-input-drivers
+xterm
+xorg-fonts-100dpi
+xorg-fonts-75dpi
+xorg-res-utils
+
+#xorg-video-drivers
+xf86-video-amd
+xf86-video-apm
+xf86-video-ark
+xf86-video-ati
+xf86-video-chips
+xf86-video-cirrus
+xf86-video-dummy
+xf86-video-fbdev
+xf86-video-glint
+xf86-video-i128
+xf86-video-i740
+#xf86-video-i810
+xf86-video-imstt
+xf86-video-intel
+xf86-video-mga
+xf86-video-neomagic
+xf86-video-nv
+xf86-video-radeonhd
+xf86-video-rendition
+xf86-video-s3
+xf86-video-s3virge
+xf86-video-savage
+xf86-video-siliconmotion
+xf86-video-sis
+xf86-video-sisusb
+#xf86-video-tdfx
+xf86-video-trident
+xf86-video-tseng
+xf86-video-unichrome
+xf86-video-v4l
+xf86-video-vesa
+xf86-video-vga
+#xf86-video-via
+xf86-video-vmware
+xf86-video-voodoo
+
+# X apps
+#luser
+#localed
+
+#xkmap
+
+#gparted
+#larchin
+
+#mythtv
+mythtv
+mytharchive
+mythbrowser
+mythcontrols
+mythflix
+mythgallery
+mythgame
+mythmusic
+mythphone
+myththemes
+mythweather
+mythweb
+mythvideo
+nuvexport
+lirc
+lirc-utils
+mysql
+xmltv
+esd
+
+#Window Manager
+fluxbox
+feh
+
+#Other
+dbus
+hal
+fftw2
+libcdaudio
+iptables
+pkgconfig
+taglib
+
+#MythVantage Installer deps
+bc
+mysql-python
+expect
+curl
+dnsutils
+
+#Wireless
+b43-fwcutter
+ipw2100-fw
+ipw2200-fw
+ipw3945
+ipw3945-ucode
+ipw3945d
+iwlwifi-3945-ucode
+iwlwifi-4965-ucode
+madwifi
+madwifi-utils
+ndiswrapper
+ndiswrapper-utils
+netcfg
+rt2500
+rt2x00-rt61-fw
+rt2x00-rt71w-fw
+tiacx
+tiacx-firmware
+wireless_tools
+wlan-ng26
+wlan-ng26-utils
+zd1211-firmware
+
+#----
+live-installer
+etcnet
+runit
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/cache_packs b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/cache_packs
new file mode 100644
index 0000000..b95e6f4
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/cache_packs
@@ -0,0 +1 @@
+mythdb-initial
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/cd-root/isolinux/isolinux.cfg b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/cd-root/isolinux/isolinux.cfg
new file mode 100644
index 0000000..26a365a
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/cd-root/isolinux/isolinux.cfg
@@ -0,0 +1,49 @@
+default vesamenu.c32
+prompt 0
+timeout 50
+
+MENU BACKGROUND vbg.jpg
+MENU COLOR border 31;40 #90ffff00 #00000000 std
+MENU COLOR sel 31;47 #00000000 #FFFFFF15 al
+
+MENU TITLE LinHES: The Linux Home Entertainment System
+
+label linux
+MENU LABEL LinHES with Splashy (default).
+kernel vmlinuz
+append initrd=larch.img vga=791 quiet splash
+
+label linux-nosplash
+MENU LABEL LinHES without splash screen.
+kernel vmlinuz
+append initrd=larch.img
+
+label linux-splash
+MENU LABEL LinHES with splash screen.
+kernel vmlinuz
+append initrd=larch.img vga=791 quiet splash
+
+label linux-i810
+MENU LABEL with Intel i810 driver (DRI disabled)
+kernel vmlinuz
+append initrd=larch.img i810
+
+label linux-nox
+MENU LABEL Boot to console (without X windowing)
+kernel vmlinuz
+append initrd=larch.img 3
+
+label linux-c2r
+MENU LABEL LinHES: copy-to-ram (also activates swap)
+kernel vmlinuz
+append initrd=larch.img c2r
+
+label linux-swap
+MENU LABEL LinHES: Use swap
+kernel vmlinuz
+append initrd=larch.img swap
+
+
+label memtest
+MENU LABEL Memory tester
+kernel memtest
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/cd-root/isolinux/vbg.jpg b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/cd-root/isolinux/vbg.jpg
new file mode 100644
index 0000000..43fbdd2
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/cd-root/isolinux/vbg.jpg
Binary files differ
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/cd-root/larch/copy/actions.rc b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/cd-root/larch/copy/actions.rc
new file mode 100644
index 0000000..dd95b26
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/cd-root/larch/copy/actions.rc
@@ -0,0 +1,3 @@
+type=0
+orientation=1
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/cd-root/larch/copy/autologin b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/cd-root/larch/copy/autologin
new file mode 100644
index 0000000..93ca142
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/cd-root/larch/copy/autologin
@@ -0,0 +1 @@
+root \ No newline at end of file
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/cd-root/larch/copy/bash_profile b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/cd-root/larch/copy/bash_profile
new file mode 100644
index 0000000..c49349b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/cd-root/larch/copy/bash_profile
@@ -0,0 +1 @@
+. $HOME/.bashrc
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/cd-root/larch/copy/larch0 b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/cd-root/larch/copy/larch0
new file mode 100644
index 0000000..c80b7c2
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/cd-root/larch/copy/larch0
@@ -0,0 +1,63 @@
+# This is a script 'sourced' from the installation script larch-tidy.
+# Its purpose is to remove custom live-only stuff from a just-installed
+# system.
+# ${INSTALL} is the path to the installed system root directory.
+
+rm "${INSTALL}/root/Desktop/Install Arch Linux.desktop"
+
+if [ -f ${INSTALL}/etc/rc.local.orig ]; then
+ mv ${INSTALL}/etc/rc.local.orig ${INSTALL}/etc/rc.local
+fi
+if [ -f ${INSTALL}/etc/rc.local.shutdown.orig ]; then
+ mv ${INSTALL}/etc/rc.local.shutdown.orig ${INSTALL}/etc/rc.local.shutdown
+fi
+
+# slim is currently started in inittab
+#sed -i '/^DAEMONS=/ s|!slim|@slim|' ${INSTALL}/etc/rc.conf
+
+# Copy xorg.conf.i810 to target xorg.conf if necessary
+if ! [ -f /etc/X11/xorg.conf ]; then
+ if grep i810 /proc/cmdline &>/dev/null; then
+ cp /etc/X11/xorg.conf.i810 ${INSTALL}/etc/X11/xorg.conf
+ fi
+fi
+
+#***************************************************#
+# Replace uses of larchquit in xfce panels and menu.#
+#***************************************************#
+### Unfortunately this isn't very simple. If anyone has a better way of
+### providing different Quit actions in the live version and the version
+### installed to disk from it, please let me know!
+### Maybe it would be better just to provide a special live quit desktop
+### icon which can be removed on installation, like the installation icon.
+
+defaultquit='<builtin name="Quit" cmd="Quit" icon="gnome-logout"/>'
+
+replacequit ()
+{
+ for f in ${INSTALL}$1/.config/xfce4/panel/*; do
+ if grep "^Exec=larchquit" ${f}; then
+ n=$( echo ${f} | sed "s|^.*-\([0-9]\+\).*|\1|" )
+ cp /.livesys/actions.rc \
+ ${INSTALL}$1/.config/xfce4/panel/actions-${n}.rc
+ rm ${f}
+
+ sed -i "s|=\"launcher\" id=\"${n}\"|=\"actions\" id=\"${n}\"|" \
+ ${INSTALL}$1/.config/xfce4/panel/panels.xml
+ fi
+ done
+
+ if [ -f ${INSTALL}$1/.bash_profile ]; then
+ sed -i "s|<app .*cmd=\"larchquit.*/>|${defaultquit}|" \
+ ${INSTALL}$1/.config/xfce4/desktop/menu.xml
+
+ cp /.livesys/xfce4-session.rc ${INSTALL}$1/.config/xfce4-session
+ cp /.livesys/bash_profile ${INSTALL}$1/.bash_profile
+ fi
+}
+
+for hd in $( cat ${INSTALL}/etc/passwd | cut -d':' -f6 | grep '^/home/' ) \
+ /root /etc/skel; do
+ replacequit ${hd} &>/dev/null
+done
+#***************************************************#
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/create_overlay.sh b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/create_overlay.sh
new file mode 100755
index 0000000..6a4fdee
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/create_overlay.sh
@@ -0,0 +1 @@
+../../run/xpack -r overlay overlay.xpk
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/locale.gen b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/locale.gen
new file mode 100644
index 0000000..760ec23
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/locale.gen
@@ -0,0 +1,5 @@
+# locales for larch (/etc/locale.gen)
+
+en_US ISO-8859-1
+en_US.UTF-8 UTF-8
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/overlay/home/mythtv/.fluxbox/apps b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/overlay/home/mythtv/.fluxbox/apps
new file mode 100644
index 0000000..5a2b8d6
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/overlay/home/mythtv/.fluxbox/apps
@@ -0,0 +1,2 @@
+[startup] {feh --bg-scale ~/.fluxbox/wallpaper.png}
+[startup] {sudo /usr/MythVantage/bin/mythvantage}
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/overlay/home/mythtv/.xinitrc b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/overlay/home/mythtv/.xinitrc
new file mode 100755
index 0000000..d988c98
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/overlay/home/mythtv/.xinitrc
@@ -0,0 +1,19 @@
+#!/bin/sh
+. /etc/profile
+#
+# ~/.xinitrc
+#
+# Executed by startx (run your window manager from here)
+#
+
+# exec gnome-session
+# exec startkde
+# exec startxfce4
+# exec icewm
+# exec openbox
+# exec blackbox
+# exec fluxbox
+# exec ratpoison
+# exec dwm
+# ... or any other WM of your choosing ...
+exec fluxbox
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/pacman.conf b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/pacman.conf
new file mode 100755
index 0000000..c5fcbfa
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/pacman.conf
@@ -0,0 +1,61 @@
+#
+# /etc/pacman.conf
+# from pacman.conf MV
+# NOTE: If you find a mirror that is geographically close to you, please
+# move it to the top of the server list, so pacman will choose it
+# first.
+#
+# To re-sort your mirror lists by ping/traceroute results, use the
+# /usr/bin/sortmirrors script. It requires the "netselect" package.
+#
+
+# See the pacman manpage for option directives
+
+#
+# GENERAL OPTIONS
+#
+[options]
+LogFile = /var/log/pacman.log
+NoUpgrade = etc/passwd etc/group etc/shadow etc/sudoers
+NoUpgrade = etc/fstab etc/raidtab etc/ld.so.conf
+NoUpgrade = etc/rc.conf etc/rc.local
+NoUpgrade = etc/modprobe.conf etc/modules.conf
+NoUpgrade = etc/lilo.conf boot/grub/menu.lst
+NoUpgrade = data/srv/hobbit/etc/bb-hosts
+NoUpgrade = etc/func/minion.conf
+
+HoldPkg = pacman glibc
+CacheDir = /data/var/cache/pacman/pkg
+#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
+
+#
+# REPOSITORIES
+# - can be defined here or included from another file
+# - pacman will search repositories in the order defined here.
+# - local/custom mirrors can be added here or in separate files
+#
+[core-testing]
+Server = http://knoppmyth.net/repo/i586/core-testing
+
+[extra-testing]
+Server = http://knoppmyth.net/repo/i586/extra-testing
+
+
+########################ARCH DEFAULTS#############
+#[core]
+# Add your preferred servers here, they will be used first
+#Include = /etc/pacman.d/mirrorlist
+
+#[extra]
+# Add your preferred servers here, they will be used first
+#Include = /etc/pacman.d/mirrorlist
+
+#[community]
+# Add your preferred servers here, they will be used first
+#Include = /etc/pacman.d/mirrorlist
+
+# Unstable is disabled by default. To enable, uncomment the following
+# two lines. You can add preferred servers immediately after the header,
+# and they will be used before the default mirrors.
+#[unstable]
+#Include = /etc/pacman.d/mirrorlist
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post-process.sh b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post-process.sh
new file mode 100755
index 0000000..131b907
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post-process.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+echo $@
+INSTDIR=$1
+PROFILE=$2
+
+#everything below this point is specific to MythVantage
+cp -rp $PROFILE/post_process $INSTDIR/.tweak
+chroot $INSTDIR .tweak/tweak.sh
+rm -rf $INSTDIR/.tweak
+
+#find the size of the install.
+#This is used to calculate progress on the install
+tsize=`du -sm $INSTDIR/ | cut -f1`
+echo "TOTALSIZE=$tsize" > $INSTDIR/root/.install_size
+upsize=`du -sm --exclude data $INSTDIR/ |cut -f1`
+echo "UPGRADESIZE=$upsize" >> $INSTDIR/root/.install_size
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.bash_profile b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.bash_profile
new file mode 100644
index 0000000..c49349b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.bash_profile
@@ -0,0 +1 @@
+. $HOME/.bashrc
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.bashrc b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.bashrc
new file mode 100644
index 0000000..fcabce0
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.bashrc
@@ -0,0 +1,3 @@
+alias ls='ls --color=auto'
+PS1='[\u@\h \W]\$ '
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.fluxbox/apps b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.fluxbox/apps
new file mode 100644
index 0000000..52db7fe
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.fluxbox/apps
@@ -0,0 +1,2 @@
+[startup] {feh --bg-scale ~/.fluxbox/wallpaper.png}
+[startup] {mythfrontend}
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.fluxbox/init b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.fluxbox/init
new file mode 100644
index 0000000..aa4040a
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.fluxbox/init
@@ -0,0 +1,35 @@
+session.screen0.slit.placement: BottomRight
+session.screen0.slit.direction: Vertical
+session.screen0.slit.onTop: False
+session.screen0.slit.autoHide: True
+session.screen0.tab.placement: Top
+session.screen0.toolbar.onTop: False
+session.screen0.toolbar.visible: False
+session.screen0.toolbar.autoHide: False
+session.screen0.toolbar.placement: BottomCenter
+session.screen0.toolbar.widthPercent: 66
+session.screen0.workspaceNames: one,two,three,four
+session.screen0.strftimeFormat: %k:%M
+session.screen0.focusNewWindows: True
+session.screen0.focusModel: ClickToFocus
+session.screen0.fullMaximization: False
+session.screen0.edgeSnapThreshold: 0
+session.screen0.rowPlacementDirection: LeftToRight
+session.screen0.workspaces: 4
+session.screen0.focusLastWindow: True
+session.screen0.colPlacementDirection: TopToBottom
+session.screen0.windowPlacement: RowSmartPlacement
+session.screen0.tab.width: 64
+session.screen0.tab.height: 16
+session.screen0.showwindowposition: true
+session.opaqueMove: False
+session.autoRaiseDelay: 250
+session.menuFile: ~/.fluxbox/menu
+session.cacheLife: 5
+session.styleFile: /usr/share/fluxbox/styles/bora_black
+session.keyFile: ~/.fluxbox/keys
+session.colorsPerChannel: 4
+session.doubleClickInterval: 250
+session.cacheMax: 200
+session.imageDither: True
+session.configVersion: 1
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.fluxbox/menu b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.fluxbox/menu
new file mode 100644
index 0000000..858090e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.fluxbox/menu
@@ -0,0 +1,81 @@
+# Generated by fluxbox-generate_menu
+#
+# If you read this it means you want to edit this file manually, so here
+# are some useful tips:
+#
+# - You can add your own menu-entries to ~/.fluxbox/usermenu
+#
+# - If you miss apps please let me know and I will add them for the next
+# release.
+#
+# - The -r option prevents removing of empty menu entries and lines which
+# makes things much more readable.
+#
+# - To prevent any other app from overwriting your menu
+# you can change the menu name in .fluxbox/init to:
+# session.menuFile: /home/mythtv/.fluxbox/my-menu
+[begin] (Fluxbox)
+[encoding] {UTF-8}
+ [exec] (xterm) {xterm}
+ [exec] () {} execname is NULL; cannot lookup
+ [exec] (Run) {fbrun }
+[submenu] (Terminals)
+ [exec] (xterm) {xterm}
+[end]
+[submenu] (Editors)
+ [exec] (xedit) {xedit}
+ [exec] (nano) {xterm -e nano}
+ [exec] (vi) {xterm -e vi}
+[end]
+[submenu] (Multimedia)
+[submenu] (Audio)
+ [exec] (alsamixer) {xterm -e alsamixer}
+[end]
+[submenu] (Video)
+ [exec] (gmplayer) {gmplayer}
+[end]
+[submenu] (X-utils)
+ [exec] (xfontsel) {xfontsel}
+ [exec] (xman) {xman}
+ [exec] (xload) {xload}
+ [exec] (xbiff) {xbiff}
+ [exec] (xclock) {xclock}
+ [exec] (xmag) {xmag}
+ [exec] (Reload .Xdefaults) {xrdb -load /home/mythtv/.Xdefaults}
+[end]
+[end]
+[submenu] (Office)
+ [exec] (xclock) {xclock}
+ [exec] (xcalc) {xcalc}
+[end]
+[submenu] (Games)
+ [exec] (xeyes) {xeyes}
+[end]
+[submenu] (System Tools)
+ [exec] (top) {xterm -e top}
+[end]
+[submenu] (fluxbox menu)
+ [config] (Configure)
+[submenu] (System Styles) {Choose a style...}
+ [stylesdir] (/usr/share/fluxbox/styles)
+[end]
+[submenu] (User Styles) {Choose a style...}
+ [stylesdir] (~/.fluxbox/styles)
+[end]
+ [workspaces] (Workspace List)
+[submenu] (Tools)
+ [exec] (Window name) {xprop WM_CLASS|cut -d \" -f 2|xmessage -file - -center}
+ [exec] (Screenshot - JPG) {import screenshot.jpg && display -resize 50% screenshot.jpg}
+ [exec] (Screenshot - PNG) {import screenshot.png && display -resize 50% screenshot.png}
+ [exec] (Run) {fbrun }
+ [exec] (Regen Menu) {/usr/bin/fluxbox-generate_menu }
+[end]
+ [commanddialog] (Fluxbox Command)
+ [reconfig] (Reload config)
+ [restart] (Restart)
+ [exec] (About) {(fluxbox -v; fluxbox -info | sed 1d) 2> /dev/null | xmessage -file - -center}
+ [separator]
+ [exit] (Exit)
+[end]
+[endencoding]
+[end]
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.fluxbox/menuconfig b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.fluxbox/menuconfig
new file mode 100644
index 0000000..ef5b398
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.fluxbox/menuconfig
@@ -0,0 +1,65 @@
+# This file is read by fluxbox-generate_menu. If you don't like a
+# default you can change it here. Don't forget to remove the # in front
+# of the line.
+
+# Your favourite terminal. Put the command in quotes if you want to use
+# options. Put a backslash in before odd chars
+# MY_TERM='Eterm --tint \#123456'
+# MY_TERM='aterm -tint $(random_color)'
+
+# Your favourite browser. You can also specify options.
+# MY_BROWSER=mozilla
+
+# Name of the outputfile
+# MENUFILENAME=/home/mythtv/.fluxbox/menu
+
+# MENUTITLE=`fluxbox -version|cut -d " " -f-2`
+
+# standard url for console-browsers
+# HOMEPAGE=fluxbox.org
+
+# location with your own menu-entries
+# USERMENU=~/.fluxbox/usermenu
+
+# Put the launcher you would like to use here
+# LAUNCHER=fbrun
+# LAUNCHER=fbgm
+
+# Options for fbrun
+# FBRUNOPTIONS='-font 10x20 -fg grey -bg black -title run'
+
+# --- PREFIX'es
+# These are prefixes; So if fluxbox is installed in /usr/bin/fluxbox
+# your prefix is: /usr
+
+# fluxbox-generate already looks in /usr/X11R6, /usr, /usr/local and /opt so
+# there should be no need to specify them.
+#
+# PREFIX=/usr
+# GNOME_PREFIX=/opt/gnome
+# KDE_PREFIX=/opt/kde
+
+
+# Sepparate the list of background-dirs with semicolumns ':'
+# BACKGROUND_DIRS="/home/mythtv/.fluxbox/backgrounds/:/usr/share/fluxbox/backgrounds/:/usr/share/wallpapers"
+
+
+# --- Boolean variables.
+# Setting a variable to no'' won't help. Comment them out if you don't
+# want them. Setting are overruled by the command-line options.
+
+# Include all backgrounds in your backgrounds-directory
+# BACKGROUNDMENUITEM=yes
+
+# Include kde-menus
+# KDEMENU=yes
+
+# Include gnome-menus
+# GNOMEMENU=yes
+
+# enable sudo commands
+# DOSUDO=yes
+
+# Don't cleanup the menu
+# REMOVE=no
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.fluxbox/wallpaper.png b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.fluxbox/wallpaper.png
new file mode 100644
index 0000000..83da80c
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.fluxbox/wallpaper.png
Binary files differ
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.xinitrc b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.xinitrc
new file mode 100755
index 0000000..911e76e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.xinitrc
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+#
+# ~/.xinitrc
+#
+# Executed by startx (run your window manager from here)
+#
+
+# exec gnome-session
+# exec startkde
+# exec startxfce4
+# exec icewm
+# exec openbox
+# exec blackbox
+exec fluxbox
+# exec ratpoison
+# exec dwm
+# ... or any other WM of your choosing ...
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.xsession b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.xsession
new file mode 100755
index 0000000..a16dc0b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/home/mythtv/.xsession
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+#
+# ~/.xsession
+#
+# Executed by xdm/gdm/kdm at login
+#
+
+/bin/bash --login -i ~/.xinitrc
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/hosts.allow b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/hosts.allow
new file mode 100644
index 0000000..ca19dbb
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/hosts.allow
@@ -0,0 +1,7 @@
+#
+# /etc/hosts.allow
+#
+ALL: 192.168.
+ALL: 10.
+ALL: 127.0.0.1
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/hosts.deny b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/hosts.deny
new file mode 100755
index 0000000..ca30ab4
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/hosts.deny
@@ -0,0 +1,6 @@
+#
+# /etc/hosts.deny
+#
+ALL
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/menu.lst b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/menu.lst
new file mode 100755
index 0000000..ce33757
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/menu.lst
@@ -0,0 +1,60 @@
+# Config file for GRUB - The GNU GRand Unified Bootloader
+# /boot/grub/menu.lst
+
+# DEVICE NAME CONVERSIONS
+#
+# Linux Grub
+# -------------------------
+# /dev/fd0 (fd0)
+# /dev/hda (hd0)
+# /dev/hdb2 (hd1,1)
+# /dev/hda3 (hd0,2)
+#
+
+# FRAMEBUFFER RESOLUTION SETTINGS
+# +-------------------------------------------------+
+# | 640x480 800x600 1024x768 1280x1024
+# ----+--------------------------------------------
+# 256 | 0x301=769 0x303=771 0x305=773 0x307=775
+# 32K | 0x310=784 0x313=787 0x316=790 0x319=793
+# 64K | 0x311=785 0x314=788 0x317=791 0x31A=794
+# 16M | 0x312=786 0x315=789 0x318=792 0x31B=795
+# +-------------------------------------------------+
+
+# general configuration:
+timeout 5
+default 0
+#color light-blue/black light-cyan/blue
+
+# boot sections follow
+# each is implicitly numbered from 0 in the order of appearance below
+#
+# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
+#
+#-*
+hiddenmenu
+
+# (0) normal
+title LinHes
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit console=tty1
+initrd /boot/kernel26.img
+
+# (1) bootsplash
+title LinHes-splashy
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit quiet vga=0x318 splash=silent,theme:darch console=tty1
+initrd /boot/kernel26.img
+
+# (2) noautologin
+title STB-nologin
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit quiet vga=0x318 splash=silent,theme:darch console=tty1 noautologin
+initrd /boot/kernel26.img
+
+
+# (3) normal
+title LinHes-init
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro console=tty1
+initrd /boot/kernel26.img
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/rc.conf b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/rc.conf
new file mode 100755
index 0000000..1d5b377
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/rc.conf
@@ -0,0 +1,113 @@
+#
+# /etc/rc.conf - Main Configuration for Arch Linux
+#
+
+#
+# -----------------------------------------------------------------------
+# LOCALIZATION
+# -----------------------------------------------------------------------
+#
+# LOCALE: available languages can be listed with the 'locale -a' command
+# HARDWARECLOCK: set to "UTC" or "localtime"
+# TIMEZONE: timezones are found in /usr/share/zoneinfo
+# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
+# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
+# CONSOLEMAP: found in /usr/share/kbd/consoletrans
+# USECOLOR: use ANSI color sequences in startup messages
+#
+LOCALE="en_US.utf8"
+HARDWARECLOCK="UTC"
+TIMEZONE="US/Central"
+KEYMAP="us"
+CONSOLEFONT=
+CONSOLEMAP=
+USECOLOR="no"
+
+#
+# -----------------------------------------------------------------------
+# HARDWARE
+# -----------------------------------------------------------------------
+#
+# Scan hardware and load required modules at bootup
+MOD_AUTOLOAD="yes"
+if [ -f /etc/systemconfig ]
+then
+ . /etc/systemconfig
+fi
+
+if [ x$Audiotype = xOSS -a ! -f /tmp/.alsatest ]
+then
+ ALSABLACKLIST="soundcore"
+else
+ if [ x$Audiotype = xOSS ]
+ then
+ ALSABLACKLIST="soundcore"
+ else
+ ALSABLACKLIST=""
+ fi
+fi
+
+# Module Blacklist - modules in this list will never be loaded by udev
+MOD_BLACKLIST=($ALSABLACKLIST)
+#
+# Modules to load at boot-up (in this order)
+# - prefix a module with a ! to blacklist it
+#
+MODULES=()
+# Scan for LVM volume groups at startup, required if you use LVM
+USELVM="no"
+
+#
+# -----------------------------------------------------------------------
+# NETWORKING
+# -----------------------------------------------------------------------
+#
+HOSTNAME=`cat /etc/hostname`
+
+#The following is only used on the install. After the first boot everything is set from /etc/net.
+
+
+#
+# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available
+# interfaces.
+#
+# Interfaces to start at boot-up (in this order)
+# Declare each interface then list in INTERFACES
+# - prefix an entry in INTERFACES with a ! to disable it
+# - no hyphens in your interface names - Bash doesn't like it
+#
+# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
+#
+lo="lo 127.0.0.1"
+#eth0="dhcp"
+INTERFACES=(lo )
+#
+# Routes to start at boot-up (in this order)
+# Declare each route then list in ROUTES
+# - prefix an entry in ROUTES with a ! to disable it
+#
+gateway="default gw 192.168.0.1"
+ROUTES=(!gateway)
+#
+# Enable these network profiles at boot-up. These are only useful
+# if you happen to need multiple network configurations (ie, laptop users)
+# - set to 'menu' to present a menu during boot-up (dialog package required)
+# - prefix an entry with a ! to disable it
+#
+# Network profiles are found in /etc/network-profiles
+#
+#NET_PROFILES=(main)
+
+#
+# -----------------------------------------------------------------------
+# DAEMONS
+# -----------------------------------------------------------------------
+#
+# Daemons to start at boot-up (in this order)
+# - prefix a daemon with a ! to disable it
+# - prefix a daemon with a @ to start it up in the background
+#
+#DAEMONS=(syslog-ng network netfs crond)
+DAEMONS=(!syslog-ng !hotplug !pcmcia network mysqld dbus avahi-daemon)
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/rc.shutdown b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/rc.shutdown
new file mode 100755
index 0000000..1a8cdbe
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/rc.shutdown
@@ -0,0 +1,104 @@
+#!/bin/bash
+#
+# /etc/rc.shutdown
+#
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+# avoid staircase effect
+/bin/stty onlcr
+
+echo " "
+printhl "Initiating Shutdown..."
+echo " "
+
+if [ -x /etc/rc.local.shutdown ]; then
+ /etc/rc.local.shutdown
+fi
+
+if [ "$PREVLEVEL" = "3" -o "$PREVLEVEL" = "5" ]; then
+ # Shutdown daemons
+ let i=${#DAEMONS[@]}
+ while [[ i -ge 0 ]]; do
+ if [[ `echo ${DAEMONS[$i]} | grep '^[^\!]' | wc -l` -eq 1 ]]; then
+ /etc/rc.d/${DAEMONS[$i]#@} stop
+ fi
+ let i=i-1
+ done
+ # find any leftover daemons and shut them down
+ if [ -d /var/run/daemons ]; then
+ for daemon in `ls /var/run/daemons`; do
+ /etc/rc.d/$daemon stop
+ done
+ fi
+fi
+
+# Terminate all processes
+stat_busy "Sending SIGTERM To Processes"
+/sbin/killall5 -15 &> /dev/null
+/bin/sleep 5
+stat_done
+
+stat_busy "Sending SIGKILL To Processes"
+/sbin/killall5 -9 &> /dev/null
+/bin/sleep 1
+stat_done
+
+stat_busy "Saving Random Seed"
+/bin/dd if=/dev/urandom of=/var/run/random-seed count=1 bs=512 2> /dev/null
+stat_done
+
+stat_busy "Saving System Clock"
+if [ "$HARDWARECLOCK" = "UTC" ]; then
+ /sbin/hwclock --directisa --utc --systohc
+else
+ /sbin/hwclock --directisa --localtime --systohc
+fi
+stat_done
+
+# removing psmouse module to fix some reboot issues on newer laptops
+modprobe -r psmouse >/dev/null 2>&1
+
+# Write to wtmp file before unmounting
+/sbin/halt -w
+
+stat_busy "Deactivating Swap"
+/sbin/swapoff -a
+stat_done
+
+stat_busy "Unmounting Filesystems"
+/bin/umount -a
+stat_done
+
+if [ "$USELVM" = "yes" -o "$USELVM" = "YES" ]; then
+ if [ -d /etc/lvm -a -x /sbin/lvm ]; then
+ /bin/mount -n -t sysfs none /sys 2>/dev/null
+ if [ -d /sys/block ]; then
+ stat_busy "Deactivating LVM2 groups"
+ /sbin/lvm vgchange --ignorelockingfailure -a n
+ stat_done
+ umount /sys
+ fi
+ fi
+fi
+
+stat_busy "Remounting Root Filesystem Read-only"
+/bin/mount -n -o remount,ro /
+stat_done
+exit 0
+# Power off or reboot
+if [ "$RUNLEVEL" = "0" ]; then
+ printsep
+ printhl "${C_H2}POWER OFF"
+ /sbin/poweroff -d -f -h -i
+else
+ printsep
+ printhl "${C_H2}REBOOTING"
+ # adding kexec support
+ [ -x /usr/sbin/kexec ] && /usr/sbin/kexec -e > /dev/null 2>&1
+ /sbin/reboot -d -f -i
+fi
+
+# End of file
+# vim: set ts=2 noet:
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/tweak.sh b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/tweak.sh
new file mode 100755
index 0000000..5c73cf4
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/post_process/tweak.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+useradd -m -s /bin/bash mythtv -G audio,video,optical,storage,users
+echo 'setting mythtv password to "a" '
+passwd mythtv <<EOF
+a
+a
+EOF
+
+echo 'setting root password to "a" '
+passwd root <<EOF
+a
+a
+EOF
+
+#edit /home/mythtv/.xinitrc and uncomment exec fluxbox
+cp -rvpf /.tweak/home/mythtv /home/
+
+
+
+chown -R mythtv.mythtv /home/mythtv/
+
+
+
+cp -f /.tweak/hosts.allow /etc/hosts.allow
+cp -f /.tweak/securetty /etc/securetty
+cp -f /.tweak/rc.conf /etc/rc.conf
+#cp -f rc.local /etc/rc.local
+#cp -f locale.gen /etc/locale.gen
+
+cp -f /.tweak/rc.shutdown /etc/rc.shutdown
+cp -f /.tweak/menu.lst /boot/grub/menu.lst
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/pre-process.sh b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/pre-process.sh
new file mode 100755
index 0000000..5bc1f9c
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/pre-process.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+rm -f overlay.xpk
+if [ -d overlay/home/mythtv ]
+then
+ chown -R 1000 overlay/home/mythtv
+fi
+./create_overlay.sh
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rcconfx b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rcconfx
new file mode 100644
index 0000000..23e671e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rcconfx
@@ -0,0 +1,19 @@
+#
+# patch file for /etc/rc.conf
+#
+
+LOCALE="en_US.utf8"
+HARDWARECLOCK="UTC"
+TIMEZONE="UTC"
+KEYMAP="us"
+
+MODULES=(floppy)
+
+HOSTNAME="larch5"
+
+USELVM="yes"
+
+#eth0="dhcp"
+
+DAEMONS=(syslog-ng network mysqld dbus hal !slim sshd)
+SPLASH="splashy"
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xinit/startx.custom b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xinit/startx.custom
new file mode 100644
index 0000000..8e3ec5e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xinit/startx.custom
@@ -0,0 +1,22 @@
+if grep -v nox /proc/cmdline &>/dev/null && \
+ [ -z "$DISPLAY" ] && echo $(tty) | grep /vc/1 &>/dev/null; then
+ if grep i810 /proc/cmdline &>/dev/null; then
+ startx -- -config xorg.conf.i810
+ else
+ startx
+ fi
+
+ # Maybe there should be some code here to handle a failed startx?
+
+ # The 'return' value is at /tmp/xlogout
+ # If there is nothing there, switch user to 'newuser'
+ # If there is also nothing there, login as root
+ # - if already root, fall through to terminal
+
+ if [ -f /tmp/xlogout ] || [ -f /tmp/newuser ]; then
+ logout
+ elif [ ${UID} -ne 0 ]; then
+ echo "root" >/tmp/newuser
+ logout
+ fi
+fi
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xinit/xinitrc.custom b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xinit/xinitrc.custom
new file mode 100644
index 0000000..5f04171
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xinit/xinitrc.custom
@@ -0,0 +1,4 @@
+# Set the keymap
+xkmap-set
+
+exec fluxbox
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xorg.conf b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xorg.conf
new file mode 100644
index 0000000..6d11b2e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xorg.conf
@@ -0,0 +1,49 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ Identifier "Card0"
+ Driver "vesa"
+EndSection
+
+Section "Monitor"
+ Identifier "Monitor0"
+ HorizSync 30.0 - 65.0
+ VertRefresh 50.0 - 75.0
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ DefaultDepth 16
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ Modes "1024x768" "800x600"
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xorg.conf.i810 b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xorg.conf.i810
new file mode 100644
index 0000000..9615569
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xorg.conf.i810
@@ -0,0 +1,59 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ ### Available Driver options are:-
+ ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
+ ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
+ ### [arg]: arg optional
+ #Option "NoAccel" # [<bool>]
+ #Option "SWcursor" # [<bool>]
+ #Option "ColorKey" # <i>
+ #Option "CacheLines" # <i>
+ #Option "Dac6Bit" # [<bool>]
+ #Option "DRI" # [<bool>]
+ #Option "NoDDC" # [<bool>]
+ #Option "ShowCache" # [<bool>]
+ #Option "XvMCSurfaces" # <i>
+ #Option "PageFlip" # [<bool>]
+ Option "DRI" "False"
+ #Option "AccelMethod" "exa"
+ #Option "MigrationHeuristic" "greedy"
+ #Option "ExaNoComposite" "False"
+ Identifier "Card0"
+ Driver "intel"
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xorg.conf.i810.2 b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xorg.conf.i810.2
new file mode 100644
index 0000000..a295b38
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xorg.conf.i810.2
@@ -0,0 +1,67 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ ### Available Driver options are:-
+ ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
+ ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
+ ### [arg]: arg optional
+ #Option "NoAccel" # [<bool>]
+ #Option "SWcursor" # [<bool>]
+ #Option "ColorKey" # <i>
+ #Option "CacheLines" # <i>
+ #Option "Dac6Bit" # [<bool>]
+ #Option "DRI" # [<bool>]
+ #Option "NoDDC" # [<bool>]
+ #Option "ShowCache" # [<bool>]
+ #Option "XvMCSurfaces" # <i>
+ #Option "PageFlip" # [<bool>]
+ Option "DRI" "False"
+ #Option "AccelMethod" "exa"
+ #Option "MigrationHeuristic" "greedy"
+ #Option "ExaNoComposite" "False"
+ Identifier "Card0"
+ Driver "intel"
+EndSection
+
+Section "Monitor"
+ Identifier "Monitor0"
+ HorizSync 30.0 - 65.0
+ VertRefresh 50.0 - 75.0
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ DefaultDepth 16
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ Modes "1024x768" "800x600"
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xorg.conf.vesa b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xorg.conf.vesa
new file mode 100644
index 0000000..6d11b2e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/X11/xorg.conf.vesa
@@ -0,0 +1,49 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ Identifier "Card0"
+ Driver "vesa"
+EndSection
+
+Section "Monitor"
+ Identifier "Monitor0"
+ HorizSync 30.0 - 65.0
+ VertRefresh 50.0 - 75.0
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ DefaultDepth 16
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ Modes "1024x768" "800x600"
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/conf.d/dhcpcd b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/conf.d/dhcpcd
new file mode 100644
index 0000000..ab53c30
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/conf.d/dhcpcd
@@ -0,0 +1,6 @@
+#
+# Arguments to be passed to the DHCP client daemon
+#
+
+DHCPCD_ARGS="-t 10 -h $HOSTNAME"
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/hosts.allow b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/hosts.allow
new file mode 100644
index 0000000..19bc4d8
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/hosts.allow
@@ -0,0 +1,13 @@
+#
+# /etc/hosts.allow
+#
+
+ALL: 127.0.0.1
+
+# To allow ssh in from anywhere
+sshd: ALL
+
+# To allow ssh in from local net (example)
+#sshd: 192.168.178.0/255.255.255.0
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/inittab b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/inittab
new file mode 100644
index 0000000..2de483f
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/inittab
@@ -0,0 +1,43 @@
+#
+# /etc/inittab
+#
+
+# Runlevels:
+# 0 Halt
+# 1(S) Single-user
+# 2 Not used
+# 3 Multi-user
+# 4 Not used
+# 5 X11
+# 6 Reboot
+
+## Only one of the following two lines can be uncommented!
+# Boot to console
+id:5:initdefault:
+# Boot to X11
+#id:5:initdefault:
+
+rc::sysinit:/etc/rc.sysinit
+rs:S1:wait:/etc/rc.single
+rm:2345:wait:/etc/rc.multi
+rh:06:wait:/etc/rc.shutdown
+su:S:wait:/sbin/sulogin -p
+
+# -8 options fixes umlauts problem on login
+c1:2345:respawn:/sbin/agetty -8 38400 vc/1 linux -n -l /etc/ulogin
+c2:2345:respawn:/sbin/agetty -8 38400 vc/2 linux
+c3:2345:respawn:/sbin/agetty -8 38400 vc/3 linux
+c4:2345:respawn:/sbin/agetty -8 38400 vc/4 linux
+c5:2345:respawn:/sbin/agetty -8 38400 vc/5 linux
+c6:2345:respawn:/sbin/agetty -8 38400 vc/6 linux
+c7:5:respawn:/usr/bin/openvt -fwc 6 -- /bin/su - mythtv -c /usr/bin/startx >& /dev/null
+
+ca::ctrlaltdel:/sbin/shutdown -t3 -r now
+
+# Example lines for starting a login manager
+#x:5:respawn:/usr/bin/xdm -nodaemon
+#x:5:respawn:/usr/sbin/gdm -nodaemon
+#x:5:respawn:/opt/kde/bin/kdm -nodaemon
+#x:5:respawn:/usr/bin/slim >& /dev/null
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/inittab.larchsave b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/inittab.larchsave
new file mode 100644
index 0000000..2de483f
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/inittab.larchsave
@@ -0,0 +1,43 @@
+#
+# /etc/inittab
+#
+
+# Runlevels:
+# 0 Halt
+# 1(S) Single-user
+# 2 Not used
+# 3 Multi-user
+# 4 Not used
+# 5 X11
+# 6 Reboot
+
+## Only one of the following two lines can be uncommented!
+# Boot to console
+id:5:initdefault:
+# Boot to X11
+#id:5:initdefault:
+
+rc::sysinit:/etc/rc.sysinit
+rs:S1:wait:/etc/rc.single
+rm:2345:wait:/etc/rc.multi
+rh:06:wait:/etc/rc.shutdown
+su:S:wait:/sbin/sulogin -p
+
+# -8 options fixes umlauts problem on login
+c1:2345:respawn:/sbin/agetty -8 38400 vc/1 linux -n -l /etc/ulogin
+c2:2345:respawn:/sbin/agetty -8 38400 vc/2 linux
+c3:2345:respawn:/sbin/agetty -8 38400 vc/3 linux
+c4:2345:respawn:/sbin/agetty -8 38400 vc/4 linux
+c5:2345:respawn:/sbin/agetty -8 38400 vc/5 linux
+c6:2345:respawn:/sbin/agetty -8 38400 vc/6 linux
+c7:5:respawn:/usr/bin/openvt -fwc 6 -- /bin/su - mythtv -c /usr/bin/startx >& /dev/null
+
+ca::ctrlaltdel:/sbin/shutdown -t3 -r now
+
+# Example lines for starting a login manager
+#x:5:respawn:/usr/bin/xdm -nodaemon
+#x:5:respawn:/usr/sbin/gdm -nodaemon
+#x:5:respawn:/opt/kde/bin/kdm -nodaemon
+#x:5:respawn:/usr/bin/slim >& /dev/null
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/larch-shutdown b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/larch-shutdown
new file mode 100644
index 0000000..d614d4b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/larch-shutdown
@@ -0,0 +1,47 @@
+# Functions used by rc.shutdown
+# Modified versions for larch live systems
+
+f_saveclock ()
+{
+ :
+}
+
+f_swapoff ()
+{
+ ############################# Include session saving functions
+ # . /opt/larch-live/session-save/shutdown2
+ # if [ -f /tmp/checkse ]; then
+ # . /tmp/checkse
+ #else
+ # checkse
+ # fi
+
+ if [ -n "${saving}" ] && ! session_save; then
+ echo
+ echo "If you know what you are doing, you may be able to recover"
+ echo "something from this unpleasant situation."
+ echo
+ echo "You may use the command line to investigate further ..."
+ echo
+ echo "When finished please enter 'exit', the shutdown process will"
+ echo "then continue."
+ sh -i
+ fi
+
+ #############################
+
+ stat_busy "Deactivating Swap"
+ /sbin/swapoff -a
+ stat_done
+}
+
+f_remountro ()
+{
+ if [ -n "${ejectdev}" ]; then
+ echo "Ejecting live CD"
+ eject ${ejectdev}
+ echo "sleeping for 6 seconds"
+ sleep 6
+
+ fi
+}
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/ppp/options b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/ppp/options
new file mode 100644
index 0000000..237c390
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/ppp/options
@@ -0,0 +1,352 @@
+# /etc/ppp/options
+#
+# Originally created by Jim Knoble <jmknoble@mercury.interpath.net>
+# Modified for Debian by alvar Bray <alvar@meiko.co.uk>
+# Modified for PPP Server setup by Christoph Lameter <clameter@debian.org>
+# Modified for ArchLinux by Manolis Tzanidakis <manolis@archlinux.org>
+#
+# To quickly see what options are active in this file, use this command:
+# egrep -v '#|^ *$' /etc/ppp/options
+
+# Specify which DNS Servers the incoming Win95 or WinNT Connection should use
+# Two Servers can be remotely configured
+# ms-dns 192.168.1.1
+# ms-dns 192.168.1.2
+
+# Specify which WINS Servers the incoming connection Win95 or WinNT should use
+# ms-wins 192.168.1.50
+# ms-wins 192.168.1.51
+
+# Run the executable or shell command specified after pppd has
+# terminated the link. This script could, for example, issue commands
+# to the modem to cause it to hang up if hardware modem control signals
+# were not available.
+#disconnect "chat -- \d+++\d\c OK ath0 OK"
+
+# async character map -- 32-bit hex; each bit is a character
+# that needs to be escaped for pppd to receive it. 0x00000001
+# represents '\x01', and 0x80000000 represents '\x1f'.
+asyncmap 0
+
+# Require the peer to authenticate itself before allowing network
+# packets to be sent or received.
+# Please do not disable this setting. It is expected to be standard in
+# future releases of pppd. Use the call option (see manpage) to disable
+# authentication for specific peers.
+#auth
+
+# Use hardware flow control (i.e. RTS/CTS) to control the flow of data
+# on the serial port.
+crtscts
+
+# Use software flow control (i.e. XON/XOFF) to control the flow of data
+# on the serial port.
+#xonxoff
+
+# Specifies that certain characters should be escaped on transmission
+# (regardless of whether the peer requests them to be escaped with its
+# async control character map). The characters to be escaped are
+# specified as a list of hex numbers separated by commas. Note that
+# almost any character can be specified for the escape option, unlike
+# the asyncmap option which only allows control characters to be
+# specified. The characters which may not be escaped are those with hex
+# values 0x20 - 0x3f or 0x5e.
+#escape 11,13,ff
+
+# Don't use the modem control lines.
+#local
+
+# Specifies that pppd should use a UUCP-style lock on the serial device
+# to ensure exclusive access to the device.
+lock
+
+# Don't show the passwords when logging the contents of PAP packets.
+# This is the default.
+hide-password
+
+# When logging the contents of PAP packets, this option causes pppd to
+# show the password string in the log message.
+#show-password
+
+# Use the modem control lines. On Ultrix, this option implies hardware
+# flow control, as for the crtscts option. (This option is not fully
+# implemented.)
+modem
+
+# Set the MRU [Maximum Receive Unit] value to <n> for negotiation. pppd
+# will ask the peer to send packets of no more than <n> bytes. The
+# minimum MRU value is 128. The default MRU value is 1500. A value of
+# 296 is recommended for slow links (40 bytes for TCP/IP header + 256
+# bytes of data).
+#mru 542
+
+# Set the interface netmask to <n>, a 32 bit netmask in "decimal dot"
+# notation (e.g. 255.255.255.0).
+#netmask 255.255.255.0
+
+# Disables the default behaviour when no local IP address is specified,
+# which is to determine (if possible) the local IP address from the
+# hostname. With this option, the peer will have to supply the local IP
+# address during IPCP negotiation (unless it specified explicitly on the
+# command line or in an options file).
+#noipdefault
+
+# Enables the "passive" option in the LCP. With this option, pppd will
+# attempt to initiate a connection; if no reply is received from the
+# peer, pppd will then just wait passively for a valid LCP packet from
+# the peer (instead of exiting, as it does without this option).
+#passive
+
+# With this option, pppd will not transmit LCP packets to initiate a
+# connection until a valid LCP packet is received from the peer (as for
+# the "passive" option with old versions of pppd).
+#silent
+
+# Don't request or allow negotiation of any options for LCP and IPCP
+# (use default values).
+#-all
+
+# Disable Address/Control compression negotiation (use default, i.e.
+# address/control field disabled).
+#-ac
+
+# Disable asyncmap negotiation (use the default asyncmap, i.e. escape
+# all control characters).
+#-am
+
+# Don't fork to become a background process (otherwise pppd will do so
+# if a serial device is specified).
+#-detach
+
+# Disable IP address negotiation (with this option, the remote IP
+# address must be specified with an option on the command line or in
+# an options file).
+#-ip
+
+# Disable IPCP negotiation and IP communication. This option should
+# only be required if the peer is buggy and gets confused by requests
+# from pppd for IPCP negotiation.
+#noip
+
+# Disable magic number negotiation. With this option, pppd cannot
+# detect a looped-back line.
+#-mn
+
+# Disable MRU [Maximum Receive Unit] negotiation (use default, i.e.
+# 1500).
+#-mru
+
+# Disable protocol field compression negotiation (use default, i.e.
+# protocol field compression disabled).
+#-pc
+
+# Require the peer to authenticate itself using PAP.
+#+pap
+
+# Don't agree to authenticate using PAP.
+#-pap
+
+# Require the peer to authenticate itself using CHAP [Cryptographic
+# Handshake Authentication Protocol] authentication.
+#+chap
+
+# Don't agree to authenticate using CHAP.
+#-chap
+
+# Disable negotiation of Van Jacobson style IP header compression (use
+# default, i.e. no compression).
+#-vj
+
+# Increase debugging level (same as -d). If this option is given, pppd
+# will log the contents of all control packets sent or received in a
+# readable form. The packets are logged through syslog with facility
+# daemon and level debug. This information can be directed to a file by
+# setting up /etc/syslog.conf appropriately (see syslog.conf(5)). (If
+# pppd is compiled with extra debugging enabled, it will log messages
+# using facility local2 instead of daemon).
+#debug
+
+# Append the domain name <d> to the local host name for authentication
+# purposes. For example, if gethostname() returns the name porsche,
+# but the fully qualified domain name is porsche.Quotron.COM, you would
+# use the domain option to set the domain name to Quotron.COM.
+#domain <d>
+
+# Enable debugging code in the kernel-level PPP driver. The argument n
+# is a number which is the sum of the following values: 1 to enable
+# general debug messages, 2 to request that the contents of received
+# packets be printed, and 4 to request that the contents of transmitted
+# packets be printed.
+#kdebug n
+
+# Set the MTU [Maximum Transmit Unit] value to <n>. Unless the peer
+# requests a smaller value via MRU negotiation, pppd will request that
+# the kernel networking code send data packets of no more than n bytes
+# through the PPP network interface.
+#mtu <n>
+
+# Set the name of the local system for authentication purposes to <n>.
+# This is a privileged option. With this option, pppd will use lines in the
+# secrets files which have <n> as the second field when looking for a
+# secret to use in authenticating the peer. In addition, unless overridden
+# with the user option, <n> will be used as the name to send to the peer
+# when authenticating the local system to the peer. (Note that pppd does
+# not append the domain name to <n>.)
+#name <n>
+
+# Enforce the use of the hostname as the name of the local system for
+# authentication purposes (overrides the name option).
+#usehostname
+
+# Set the assumed name of the remote system for authentication purposes
+# to <n>.
+#remotename <n>
+
+# Add an entry to this system's ARP [Address Resolution Protocol]
+# table with the IP address of the peer and the Ethernet address of this
+# system.
+proxyarp
+
+# Use the system password database for authenticating the peer using
+# PAP. Note: mgetty already provides this option. If this is specified
+# then dialin from users using a script under Linux to fire up ppp wont work.
+# login
+
+# If this option is given, pppd will send an LCP echo-request frame to the
+# peer every n seconds. Normally the peer should respond to the echo-request
+# by sending an echo-reply. This option can be used with the
+# lcp-echo-failure option to detect that the peer is no longer connected.
+lcp-echo-interval 30
+
+# If this option is given, pppd will presume the peer to be dead if n
+# LCP echo-requests are sent without receiving a valid LCP echo-reply.
+# If this happens, pppd will terminate the connection. Use of this
+# option requires a non-zero value for the lcp-echo-interval parameter.
+# This option can be used to enable pppd to terminate after the physical
+# connection has been broken (e.g., the modem has hung up) in
+# situations where no hardware modem control lines are available.
+lcp-echo-failure 4
+
+# Set the LCP restart interval (retransmission timeout) to <n> seconds
+# (default 3).
+#lcp-restart <n>
+
+# Set the maximum number of LCP terminate-request transmissions to <n>
+# (default 3).
+#lcp-max-terminate <n>
+
+# Set the maximum number of LCP configure-request transmissions to <n>
+# (default 10).
+#lcp-max-configure <n>
+
+# Set the maximum number of LCP configure-NAKs returned before starting
+# to send configure-Rejects instead to <n> (default 10).
+#lcp-max-failure <n>
+
+# Set the IPCP restart interval (retransmission timeout) to <n>
+# seconds (default 3).
+#ipcp-restart <n>
+
+# Set the maximum number of IPCP terminate-request transmissions to <n>
+# (default 3).
+#ipcp-max-terminate <n>
+
+# Set the maximum number of IPCP configure-request transmissions to <n>
+# (default 10).
+#ipcp-max-configure <n>
+
+# Set the maximum number of IPCP configure-NAKs returned before starting
+# to send configure-Rejects instead to <n> (default 10).
+#ipcp-max-failure <n>
+
+# Set the PAP restart interval (retransmission timeout) to <n> seconds
+# (default 3).
+#pap-restart <n>
+
+# Set the maximum number of PAP authenticate-request transmissions to
+# <n> (default 10).
+#pap-max-authreq <n>
+
+# Set the maximum time that pppd will wait for the peer to authenticate
+# itself with PAP to <n> seconds (0 means no limit).
+#pap-timeout <n>
+
+# Set the CHAP restart interval (retransmission timeout for
+# challenges) to <n> seconds (default 3).
+#chap-restart <n>
+
+# Set the maximum number of CHAP challenge transmissions to <n>
+# (default 10).
+#chap-max-challenge
+
+# If this option is given, pppd will rechallenge the peer every <n>
+# seconds.
+#chap-interval <n>
+
+# With this option, pppd will accept the peer's idea of our local IP
+# address, even if the local IP address was specified in an option.
+#ipcp-accept-local
+
+# With this option, pppd will accept the peer's idea of its (remote) IP
+# address, even if the remote IP address was specified in an option.
+#ipcp-accept-remote
+
+# Disable the IPXCP and IPX protocols.
+# To let pppd pass IPX packets comment this out --- you'll probably also
+# want to install ipxripd, and have the Internal IPX Network option enabled
+# in your kernel. /usr/doc/HOWTO/IPX-HOWTO.gz contains more info.
+noipx
+
+# Exit once a connection has been made and terminated. This is the default,
+# unless the `persist' or `demand' option has been specified.
+#nopersist
+
+# Do not exit after a connection is terminated; instead try to reopen
+# the connection.
+#persist
+
+# Terminate after n consecutive failed connection attempts.
+# A value of 0 means no limit. The default value is 10.
+#maxfail <n>
+
+# Initiate the link only on demand, i.e. when data traffic is present.
+# With this option, the remote IP address must be specified by the user on
+# the command line or in an options file. Pppd will initially configure
+# the interface and enable it for IP traffic without connecting to the peer.
+# When traffic is available, pppd will connect to the peer and perform
+# negotiation, authentication, etc. When this is completed, pppd will
+# commence passing data packets (i.e., IP packets) across the link.
+#demand
+
+# Specifies that pppd should disconnect if the link is idle for <n> seconds.
+# The link is idle when no data packets (i.e. IP packets) are being sent or
+# received. Note: it is not advisable to use this option with the persist
+# option without the demand option. If the active-filter option is given,
+# data packets which are rejected by the specified activity filter also
+# count as the link being idle.
+#idle <n>
+
+# Specifies how many seconds to wait before re-initiating the link after
+# it terminates. This option only has any effect if the persist or demand
+# option is used. The holdoff period is not applied if the link was
+# terminated because it was idle.
+#holdoff <n>
+
+# Wait for up n milliseconds after the connect script finishes for a valid
+# PPP packet from the peer. At the end of this time, or when a valid PPP
+# packet is received from the peer, pppd will commence negotiation by
+# sending its first LCP packet. The default value is 1000 (1 second).
+# This wait period only applies if the connect or pty option is used.
+#connect-delay <n>
+
+# Packet filtering: for more information, see pppd(8)
+# Any packets matching the filter expression will be interpreted as link
+# activity, and will cause a "demand" connection to be activated, and reset
+# the idle connection timer. (idle option)
+# The filter expression is akin to that of tcpdump(1)
+#active-filter <filter-expression>
+
+# uncomment the line below this if you use PPPoE
+#plugin /usr/lib/pppd/plugins/pppoe.so
+
+# ---<End of File>---
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/rc.local b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/rc.local
new file mode 100755
index 0000000..216ec8e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/rc.local
@@ -0,0 +1,16 @@
+#!/bin/bash
+#
+# /etc/rc.local: Local multi-user startup script.
+#
+
+#install initial database
+pacman -S --noconfirm mythdb-initial 2>/dev/null
+
+# Set up automatically logged in user (larch live system only)
+if [ -f /.livesys/autologin ]; then
+ cp /.livesys/autologin /tmp/newuser
+fi
+
+# Restore saved sound volume, etc.
+#alsactl restore
+#install initial database
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/rc.local.orig b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/rc.local.orig
new file mode 100755
index 0000000..47b24ef
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/rc.local.orig
@@ -0,0 +1,7 @@
+#!/bin/bash
+#
+# /etc/rc.local: Local multi-user startup script.
+#
+
+# Restore saved sound volume, etc.
+alsactl restore
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/rc.local.shutdown b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/rc.local.shutdown
new file mode 100755
index 0000000..2b5f735
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/rc.local.shutdown
@@ -0,0 +1,7 @@
+#!/bin/bash
+#
+# /etc/rc.local.shutdown: Local shutdown script.
+#
+
+# Save sound volume, etc.
+alsactl store
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/skel/.bash_profile b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/skel/.bash_profile
new file mode 100644
index 0000000..600bd9b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/skel/.bash_profile
@@ -0,0 +1,3 @@
+. $HOME/.bashrc
+
+. /etc/X11/xinit/startx.custom
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/skel/.bashrc b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/skel/.bashrc
new file mode 100644
index 0000000..fcabce0
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/skel/.bashrc
@@ -0,0 +1,3 @@
+alias ls='ls --color=auto'
+PS1='[\u@\h \W]\$ '
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/skel/.xinitrc b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/skel/.xinitrc
new file mode 100644
index 0000000..c6febe5
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/skel/.xinitrc
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+#
+# ~/.xinitrc
+#
+# Executed by startx (run your window manager from here)
+#
+
+# exec gnome-session
+# exec startkde
+# exec startxfce4
+# exec icewm
+# exec openbox
+# exec blackbox
+exec fluxbox
+# exec ratpoison
+# exec dwm
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/skel/.xsession b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/skel/.xsession
new file mode 100755
index 0000000..a16dc0b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/skel/.xsession
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+#
+# ~/.xsession
+#
+# Executed by xdm/gdm/kdm at login
+#
+
+/bin/bash --login -i ~/.xinitrc
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/slim.conf b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/slim.conf
new file mode 100644
index 0000000..35ed579
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-REMOTE/rootoverlay/etc/slim.conf
@@ -0,0 +1,79 @@
+# Path, X server and arguments (if needed)
+# Note: -xauth $authfile is automatically appended
+default_path ./:/bin:/usr/bin:/usr/local/bin:/usr/bin
+default_xserver /usr/bin/X
+xserver_arguments -nolisten tcp vt07
+
+# Commands for halt, login, etc.
+halt_cmd /sbin/shutdown -h now
+reboot_cmd /sbin/shutdown -r now
+console_cmd /usr/bin/terminal -x /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
+#suspend_cmd /usr/sbin/suspend
+
+# Full path to the xauth binary
+xauth_path /usr/bin/xauth
+
+# Xauth file for server
+authfile /var/run/slim.auth
+
+
+# Activate numlock when slim starts. Valid values: on|off
+# numlock on
+
+# Hide the mouse cursor (note: does not work with some WMs).
+# Valid values: true|false
+# hidecursor false
+
+# This command is executed after a succesful login.
+# you can place the %session and %theme variables
+# to handle launching of specific commands in .xinitrc
+# depending of chosen session and slim theme
+#
+# NOTE: if your system does not have bash you need
+# to adjust the command according to your preferred shell,
+# i.e. for freebsd use:
+# login_cmd exec /bin/sh - ~/.xinitrc %session
+login_cmd exec /bin/bash -login ~/.xinitrc %session
+
+# Commands executed when starting and exiting a session.
+# They can be used for registering a X11 session with
+# sessreg. You can use the %user variable
+#
+# sessionstart_cmd some command
+# sessionstop_cmd some command
+
+# Start in daemon mode. Valid values: yes | no
+# Note that this can overridden by the command line
+# option "-d"
+# daemon yes
+
+# Available sessions (first one is the default).
+# The current chosen session name is replaced in the login_cmd
+# above, so your login command can handle different sessions.
+# see the xinitrc.sample file shipped with slim sources
+sessions xfce4,icewm,wmaker,blackbox
+
+# Executed when pressing F11 (requires imagemagick)
+screenshot_cmd import -window root /slim.png
+
+# welcome message. Available variables: %host, %domain
+welcome_msg Welcome to %host
+
+# shutdown / reboot messages
+shutdown_msg The system is halting...
+reboot_msg The system is rebooting...
+
+# default user, leave blank or remove this line
+# for avoid pre-loading the username.
+#default_user simone
+
+# current theme, use comma separated list to specify a set to
+# randomly choose from
+current_theme dlarch
+
+# Lock file
+lockfile /var/lock/slim.lock
+
+# Log file
+logfile /var/log/slim.log
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/addedpacks b/build_tools/clarch/larch/profiles/i586-testing-local/addedpacks
new file mode 100644
index 0000000..6668d64
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/addedpacks
@@ -0,0 +1,170 @@
+# These are needed to build a live CD
+linhes-live
+squashfs-tools
+lzop
+
+syslinux
+
+# You need a kernel.
+#kernel26 is now in 'base'
+aufs
+
+# To eject a cd
+eject
+
+# Useful for use as installer, etc.
+#ntfsprogs
+#parted
+
+#ddcxinfo-knoppix
+#hwd
+
+sudo
+
+lsof
+cdrkit
+dvd+rw-tools
+
+# Needed by the installer
+#python
+
+#base-devel
+#larch
+
+# generally useful tools which don't require X
+#mtools is required by syslinux
+openssh
+dosfstools
+alsa-lib
+alsa-oss
+alsa-utils
+cdparanoia
+cdrdao
+
+# Xorg packages
+xorg-server
+xorg-xkb-utils
+xorg-xauth
+xorg-server-utils
+xorg-xinit
+xorg-input-drivers
+xterm
+xorg-fonts-100dpi
+xorg-fonts-75dpi
+xorg-res-utils
+
+#xorg-video-drivers
+xf86-video-amd
+xf86-video-apm
+xf86-video-ark
+xf86-video-ati
+xf86-video-chips
+xf86-video-cirrus
+xf86-video-dummy
+xf86-video-fbdev
+xf86-video-glint
+xf86-video-i128
+xf86-video-i740
+#xf86-video-i810
+xf86-video-imstt
+xf86-video-intel
+xf86-video-mga
+xf86-video-neomagic
+xf86-video-nv
+xf86-video-radeonhd
+xf86-video-rendition
+xf86-video-s3
+xf86-video-s3virge
+xf86-video-savage
+xf86-video-siliconmotion
+xf86-video-sis
+xf86-video-sisusb
+#xf86-video-tdfx
+xf86-video-trident
+xf86-video-tseng
+xf86-video-unichrome
+xf86-video-v4l
+xf86-video-vesa
+xf86-video-vga
+#xf86-video-via
+xf86-video-vmware
+xf86-video-voodoo
+
+# X apps
+#luser
+#localed
+
+#xkmap
+
+#gparted
+#larchin
+
+#mythtv
+mythtv
+mytharchive
+mythbrowser
+mythcontrols
+mythflix
+mythgallery
+mythgame
+mythmusic
+mythphone
+myththemes
+mythweather
+mythweb
+mythvideo
+nuvexport
+lirc
+lirc-utils
+mysql
+xmltv
+esd
+
+#Window Manager
+fluxbox
+feh
+
+#Other
+dbus
+hal
+fftw2
+libcdaudio
+iptables
+pkgconfig
+taglib
+
+#MythVantage Installer deps
+bc
+mysql-python
+expect
+curl
+dnsutils
+
+#Wireless
+b43-fwcutter
+ipw2100-fw
+ipw2200-fw
+ipw3945
+ipw3945-ucode
+ipw3945d
+iwlwifi-3945-ucode
+iwlwifi-4965-ucode
+madwifi
+madwifi-utils
+ndiswrapper
+ndiswrapper-utils
+netcfg
+rt2500
+rt2x00-rt61-fw
+rt2x00-rt71w-fw
+tiacx
+tiacx-firmware
+wireless_tools
+wlan-ng26
+wlan-ng26-utils
+zd1211-firmware
+
+#----
+live-installer
+etcnet
+runit
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/cache_packs b/build_tools/clarch/larch/profiles/i586-testing-local/cache_packs
new file mode 100644
index 0000000..b95e6f4
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/cache_packs
@@ -0,0 +1 @@
+mythdb-initial
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/cd-root/isolinux/isolinux.cfg b/build_tools/clarch/larch/profiles/i586-testing-local/cd-root/isolinux/isolinux.cfg
new file mode 100644
index 0000000..26a365a
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/cd-root/isolinux/isolinux.cfg
@@ -0,0 +1,49 @@
+default vesamenu.c32
+prompt 0
+timeout 50
+
+MENU BACKGROUND vbg.jpg
+MENU COLOR border 31;40 #90ffff00 #00000000 std
+MENU COLOR sel 31;47 #00000000 #FFFFFF15 al
+
+MENU TITLE LinHES: The Linux Home Entertainment System
+
+label linux
+MENU LABEL LinHES with Splashy (default).
+kernel vmlinuz
+append initrd=larch.img vga=791 quiet splash
+
+label linux-nosplash
+MENU LABEL LinHES without splash screen.
+kernel vmlinuz
+append initrd=larch.img
+
+label linux-splash
+MENU LABEL LinHES with splash screen.
+kernel vmlinuz
+append initrd=larch.img vga=791 quiet splash
+
+label linux-i810
+MENU LABEL with Intel i810 driver (DRI disabled)
+kernel vmlinuz
+append initrd=larch.img i810
+
+label linux-nox
+MENU LABEL Boot to console (without X windowing)
+kernel vmlinuz
+append initrd=larch.img 3
+
+label linux-c2r
+MENU LABEL LinHES: copy-to-ram (also activates swap)
+kernel vmlinuz
+append initrd=larch.img c2r
+
+label linux-swap
+MENU LABEL LinHES: Use swap
+kernel vmlinuz
+append initrd=larch.img swap
+
+
+label memtest
+MENU LABEL Memory tester
+kernel memtest
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/cd-root/isolinux/vbg.jpg b/build_tools/clarch/larch/profiles/i586-testing-local/cd-root/isolinux/vbg.jpg
new file mode 100644
index 0000000..d01f1f1
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/cd-root/isolinux/vbg.jpg
Binary files differ
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/cd-root/larch/copy/actions.rc b/build_tools/clarch/larch/profiles/i586-testing-local/cd-root/larch/copy/actions.rc
new file mode 100644
index 0000000..dd95b26
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/cd-root/larch/copy/actions.rc
@@ -0,0 +1,3 @@
+type=0
+orientation=1
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/cd-root/larch/copy/autologin b/build_tools/clarch/larch/profiles/i586-testing-local/cd-root/larch/copy/autologin
new file mode 100644
index 0000000..93ca142
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/cd-root/larch/copy/autologin
@@ -0,0 +1 @@
+root \ No newline at end of file
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/cd-root/larch/copy/bash_profile b/build_tools/clarch/larch/profiles/i586-testing-local/cd-root/larch/copy/bash_profile
new file mode 100644
index 0000000..c49349b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/cd-root/larch/copy/bash_profile
@@ -0,0 +1 @@
+. $HOME/.bashrc
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/cd-root/larch/copy/larch0 b/build_tools/clarch/larch/profiles/i586-testing-local/cd-root/larch/copy/larch0
new file mode 100644
index 0000000..c80b7c2
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/cd-root/larch/copy/larch0
@@ -0,0 +1,63 @@
+# This is a script 'sourced' from the installation script larch-tidy.
+# Its purpose is to remove custom live-only stuff from a just-installed
+# system.
+# ${INSTALL} is the path to the installed system root directory.
+
+rm "${INSTALL}/root/Desktop/Install Arch Linux.desktop"
+
+if [ -f ${INSTALL}/etc/rc.local.orig ]; then
+ mv ${INSTALL}/etc/rc.local.orig ${INSTALL}/etc/rc.local
+fi
+if [ -f ${INSTALL}/etc/rc.local.shutdown.orig ]; then
+ mv ${INSTALL}/etc/rc.local.shutdown.orig ${INSTALL}/etc/rc.local.shutdown
+fi
+
+# slim is currently started in inittab
+#sed -i '/^DAEMONS=/ s|!slim|@slim|' ${INSTALL}/etc/rc.conf
+
+# Copy xorg.conf.i810 to target xorg.conf if necessary
+if ! [ -f /etc/X11/xorg.conf ]; then
+ if grep i810 /proc/cmdline &>/dev/null; then
+ cp /etc/X11/xorg.conf.i810 ${INSTALL}/etc/X11/xorg.conf
+ fi
+fi
+
+#***************************************************#
+# Replace uses of larchquit in xfce panels and menu.#
+#***************************************************#
+### Unfortunately this isn't very simple. If anyone has a better way of
+### providing different Quit actions in the live version and the version
+### installed to disk from it, please let me know!
+### Maybe it would be better just to provide a special live quit desktop
+### icon which can be removed on installation, like the installation icon.
+
+defaultquit='<builtin name="Quit" cmd="Quit" icon="gnome-logout"/>'
+
+replacequit ()
+{
+ for f in ${INSTALL}$1/.config/xfce4/panel/*; do
+ if grep "^Exec=larchquit" ${f}; then
+ n=$( echo ${f} | sed "s|^.*-\([0-9]\+\).*|\1|" )
+ cp /.livesys/actions.rc \
+ ${INSTALL}$1/.config/xfce4/panel/actions-${n}.rc
+ rm ${f}
+
+ sed -i "s|=\"launcher\" id=\"${n}\"|=\"actions\" id=\"${n}\"|" \
+ ${INSTALL}$1/.config/xfce4/panel/panels.xml
+ fi
+ done
+
+ if [ -f ${INSTALL}$1/.bash_profile ]; then
+ sed -i "s|<app .*cmd=\"larchquit.*/>|${defaultquit}|" \
+ ${INSTALL}$1/.config/xfce4/desktop/menu.xml
+
+ cp /.livesys/xfce4-session.rc ${INSTALL}$1/.config/xfce4-session
+ cp /.livesys/bash_profile ${INSTALL}$1/.bash_profile
+ fi
+}
+
+for hd in $( cat ${INSTALL}/etc/passwd | cut -d':' -f6 | grep '^/home/' ) \
+ /root /etc/skel; do
+ replacequit ${hd} &>/dev/null
+done
+#***************************************************#
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/create_overlay.sh b/build_tools/clarch/larch/profiles/i586-testing-local/create_overlay.sh
new file mode 100755
index 0000000..6a4fdee
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/create_overlay.sh
@@ -0,0 +1 @@
+../../run/xpack -r overlay overlay.xpk
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/locale.gen b/build_tools/clarch/larch/profiles/i586-testing-local/locale.gen
new file mode 100644
index 0000000..760ec23
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/locale.gen
@@ -0,0 +1,5 @@
+# locales for larch (/etc/locale.gen)
+
+en_US ISO-8859-1
+en_US.UTF-8 UTF-8
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/overlay/home/mythtv/.fluxbox/apps b/build_tools/clarch/larch/profiles/i586-testing-local/overlay/home/mythtv/.fluxbox/apps
new file mode 100644
index 0000000..5a2b8d6
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/overlay/home/mythtv/.fluxbox/apps
@@ -0,0 +1,2 @@
+[startup] {feh --bg-scale ~/.fluxbox/wallpaper.png}
+[startup] {sudo /usr/MythVantage/bin/mythvantage}
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/overlay/home/mythtv/.xinitrc b/build_tools/clarch/larch/profiles/i586-testing-local/overlay/home/mythtv/.xinitrc
new file mode 100755
index 0000000..d988c98
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/overlay/home/mythtv/.xinitrc
@@ -0,0 +1,19 @@
+#!/bin/sh
+. /etc/profile
+#
+# ~/.xinitrc
+#
+# Executed by startx (run your window manager from here)
+#
+
+# exec gnome-session
+# exec startkde
+# exec startxfce4
+# exec icewm
+# exec openbox
+# exec blackbox
+# exec fluxbox
+# exec ratpoison
+# exec dwm
+# ... or any other WM of your choosing ...
+exec fluxbox
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/pacman.conf b/build_tools/clarch/larch/profiles/i586-testing-local/pacman.conf
new file mode 100755
index 0000000..337cc76
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/pacman.conf
@@ -0,0 +1,59 @@
+#
+# /etc/pacman.conf
+# from pacman.conf MV
+# NOTE: If you find a mirror that is geographically close to you, please
+# move it to the top of the server list, so pacman will choose it
+# first.
+#
+# To re-sort your mirror lists by ping/traceroute results, use the
+# /usr/bin/sortmirrors script. It requires the "netselect" package.
+#
+
+# See the pacman manpage for option directives
+
+#
+# GENERAL OPTIONS
+#
+[options]
+LogFile = /var/log/pacman.log
+NoUpgrade = etc/passwd etc/group etc/shadow etc/sudoers
+NoUpgrade = etc/fstab etc/raidtab etc/ld.so.conf
+NoUpgrade = etc/rc.conf etc/rc.local
+NoUpgrade = etc/modprobe.conf etc/modules.conf
+NoUpgrade = etc/lilo.conf boot/grub/menu.lst
+NoUpgrade = data/srv/hobbit/etc/bb-hosts
+NoUpgrade = etc/func/minion.conf
+
+HoldPkg = pacman glibc
+CacheDir = /data/var/cache/pacman/pkg
+#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
+
+#
+# REPOSITORIES
+# - can be defined here or included from another file
+# - pacman will search repositories in the order defined here.
+# - local/custom mirrors can be added here or in separate files
+#
+[core-testing]
+Server = file:///data/local/pkg_repo/i586/core-testing
+#Server = http://localmirror/repo/r6-testing/
+
+
+########################ARCH DEFAULTS#############
+#[core]
+# Add your preferred servers here, they will be used first
+#Include = /etc/pacman.d/mirrorlist
+
+#[extra]
+# Add your preferred servers here, they will be used first
+#Include = /etc/pacman.d/mirrorlist
+
+#[community]
+# Add your preferred servers here, they will be used first
+#Include = /etc/pacman.d/mirrorlist
+
+# Unstable is disabled by default. To enable, uncomment the following
+# two lines. You can add preferred servers immediately after the header,
+# and they will be used before the default mirrors.
+#[unstable]
+#Include = /etc/pacman.d/mirrorlist
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/post-process.sh b/build_tools/clarch/larch/profiles/i586-testing-local/post-process.sh
new file mode 100755
index 0000000..131b907
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/post-process.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+echo $@
+INSTDIR=$1
+PROFILE=$2
+
+#everything below this point is specific to MythVantage
+cp -rp $PROFILE/post_process $INSTDIR/.tweak
+chroot $INSTDIR .tweak/tweak.sh
+rm -rf $INSTDIR/.tweak
+
+#find the size of the install.
+#This is used to calculate progress on the install
+tsize=`du -sm $INSTDIR/ | cut -f1`
+echo "TOTALSIZE=$tsize" > $INSTDIR/root/.install_size
+upsize=`du -sm --exclude data $INSTDIR/ |cut -f1`
+echo "UPGRADESIZE=$upsize" >> $INSTDIR/root/.install_size
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.bash_profile b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.bash_profile
new file mode 100644
index 0000000..c49349b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.bash_profile
@@ -0,0 +1 @@
+. $HOME/.bashrc
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.bashrc b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.bashrc
new file mode 100644
index 0000000..fcabce0
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.bashrc
@@ -0,0 +1,3 @@
+alias ls='ls --color=auto'
+PS1='[\u@\h \W]\$ '
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.fluxbox/apps b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.fluxbox/apps
new file mode 100644
index 0000000..52db7fe
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.fluxbox/apps
@@ -0,0 +1,2 @@
+[startup] {feh --bg-scale ~/.fluxbox/wallpaper.png}
+[startup] {mythfrontend}
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.fluxbox/init b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.fluxbox/init
new file mode 100644
index 0000000..aa4040a
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.fluxbox/init
@@ -0,0 +1,35 @@
+session.screen0.slit.placement: BottomRight
+session.screen0.slit.direction: Vertical
+session.screen0.slit.onTop: False
+session.screen0.slit.autoHide: True
+session.screen0.tab.placement: Top
+session.screen0.toolbar.onTop: False
+session.screen0.toolbar.visible: False
+session.screen0.toolbar.autoHide: False
+session.screen0.toolbar.placement: BottomCenter
+session.screen0.toolbar.widthPercent: 66
+session.screen0.workspaceNames: one,two,three,four
+session.screen0.strftimeFormat: %k:%M
+session.screen0.focusNewWindows: True
+session.screen0.focusModel: ClickToFocus
+session.screen0.fullMaximization: False
+session.screen0.edgeSnapThreshold: 0
+session.screen0.rowPlacementDirection: LeftToRight
+session.screen0.workspaces: 4
+session.screen0.focusLastWindow: True
+session.screen0.colPlacementDirection: TopToBottom
+session.screen0.windowPlacement: RowSmartPlacement
+session.screen0.tab.width: 64
+session.screen0.tab.height: 16
+session.screen0.showwindowposition: true
+session.opaqueMove: False
+session.autoRaiseDelay: 250
+session.menuFile: ~/.fluxbox/menu
+session.cacheLife: 5
+session.styleFile: /usr/share/fluxbox/styles/bora_black
+session.keyFile: ~/.fluxbox/keys
+session.colorsPerChannel: 4
+session.doubleClickInterval: 250
+session.cacheMax: 200
+session.imageDither: True
+session.configVersion: 1
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.fluxbox/menu b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.fluxbox/menu
new file mode 100644
index 0000000..858090e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.fluxbox/menu
@@ -0,0 +1,81 @@
+# Generated by fluxbox-generate_menu
+#
+# If you read this it means you want to edit this file manually, so here
+# are some useful tips:
+#
+# - You can add your own menu-entries to ~/.fluxbox/usermenu
+#
+# - If you miss apps please let me know and I will add them for the next
+# release.
+#
+# - The -r option prevents removing of empty menu entries and lines which
+# makes things much more readable.
+#
+# - To prevent any other app from overwriting your menu
+# you can change the menu name in .fluxbox/init to:
+# session.menuFile: /home/mythtv/.fluxbox/my-menu
+[begin] (Fluxbox)
+[encoding] {UTF-8}
+ [exec] (xterm) {xterm}
+ [exec] () {} execname is NULL; cannot lookup
+ [exec] (Run) {fbrun }
+[submenu] (Terminals)
+ [exec] (xterm) {xterm}
+[end]
+[submenu] (Editors)
+ [exec] (xedit) {xedit}
+ [exec] (nano) {xterm -e nano}
+ [exec] (vi) {xterm -e vi}
+[end]
+[submenu] (Multimedia)
+[submenu] (Audio)
+ [exec] (alsamixer) {xterm -e alsamixer}
+[end]
+[submenu] (Video)
+ [exec] (gmplayer) {gmplayer}
+[end]
+[submenu] (X-utils)
+ [exec] (xfontsel) {xfontsel}
+ [exec] (xman) {xman}
+ [exec] (xload) {xload}
+ [exec] (xbiff) {xbiff}
+ [exec] (xclock) {xclock}
+ [exec] (xmag) {xmag}
+ [exec] (Reload .Xdefaults) {xrdb -load /home/mythtv/.Xdefaults}
+[end]
+[end]
+[submenu] (Office)
+ [exec] (xclock) {xclock}
+ [exec] (xcalc) {xcalc}
+[end]
+[submenu] (Games)
+ [exec] (xeyes) {xeyes}
+[end]
+[submenu] (System Tools)
+ [exec] (top) {xterm -e top}
+[end]
+[submenu] (fluxbox menu)
+ [config] (Configure)
+[submenu] (System Styles) {Choose a style...}
+ [stylesdir] (/usr/share/fluxbox/styles)
+[end]
+[submenu] (User Styles) {Choose a style...}
+ [stylesdir] (~/.fluxbox/styles)
+[end]
+ [workspaces] (Workspace List)
+[submenu] (Tools)
+ [exec] (Window name) {xprop WM_CLASS|cut -d \" -f 2|xmessage -file - -center}
+ [exec] (Screenshot - JPG) {import screenshot.jpg && display -resize 50% screenshot.jpg}
+ [exec] (Screenshot - PNG) {import screenshot.png && display -resize 50% screenshot.png}
+ [exec] (Run) {fbrun }
+ [exec] (Regen Menu) {/usr/bin/fluxbox-generate_menu }
+[end]
+ [commanddialog] (Fluxbox Command)
+ [reconfig] (Reload config)
+ [restart] (Restart)
+ [exec] (About) {(fluxbox -v; fluxbox -info | sed 1d) 2> /dev/null | xmessage -file - -center}
+ [separator]
+ [exit] (Exit)
+[end]
+[endencoding]
+[end]
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.fluxbox/menuconfig b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.fluxbox/menuconfig
new file mode 100644
index 0000000..ef5b398
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.fluxbox/menuconfig
@@ -0,0 +1,65 @@
+# This file is read by fluxbox-generate_menu. If you don't like a
+# default you can change it here. Don't forget to remove the # in front
+# of the line.
+
+# Your favourite terminal. Put the command in quotes if you want to use
+# options. Put a backslash in before odd chars
+# MY_TERM='Eterm --tint \#123456'
+# MY_TERM='aterm -tint $(random_color)'
+
+# Your favourite browser. You can also specify options.
+# MY_BROWSER=mozilla
+
+# Name of the outputfile
+# MENUFILENAME=/home/mythtv/.fluxbox/menu
+
+# MENUTITLE=`fluxbox -version|cut -d " " -f-2`
+
+# standard url for console-browsers
+# HOMEPAGE=fluxbox.org
+
+# location with your own menu-entries
+# USERMENU=~/.fluxbox/usermenu
+
+# Put the launcher you would like to use here
+# LAUNCHER=fbrun
+# LAUNCHER=fbgm
+
+# Options for fbrun
+# FBRUNOPTIONS='-font 10x20 -fg grey -bg black -title run'
+
+# --- PREFIX'es
+# These are prefixes; So if fluxbox is installed in /usr/bin/fluxbox
+# your prefix is: /usr
+
+# fluxbox-generate already looks in /usr/X11R6, /usr, /usr/local and /opt so
+# there should be no need to specify them.
+#
+# PREFIX=/usr
+# GNOME_PREFIX=/opt/gnome
+# KDE_PREFIX=/opt/kde
+
+
+# Sepparate the list of background-dirs with semicolumns ':'
+# BACKGROUND_DIRS="/home/mythtv/.fluxbox/backgrounds/:/usr/share/fluxbox/backgrounds/:/usr/share/wallpapers"
+
+
+# --- Boolean variables.
+# Setting a variable to no'' won't help. Comment them out if you don't
+# want them. Setting are overruled by the command-line options.
+
+# Include all backgrounds in your backgrounds-directory
+# BACKGROUNDMENUITEM=yes
+
+# Include kde-menus
+# KDEMENU=yes
+
+# Include gnome-menus
+# GNOMEMENU=yes
+
+# enable sudo commands
+# DOSUDO=yes
+
+# Don't cleanup the menu
+# REMOVE=no
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.fluxbox/wallpaper.png b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.fluxbox/wallpaper.png
new file mode 100644
index 0000000..83da80c
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.fluxbox/wallpaper.png
Binary files differ
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.xinitrc b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.xinitrc
new file mode 100755
index 0000000..911e76e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.xinitrc
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+#
+# ~/.xinitrc
+#
+# Executed by startx (run your window manager from here)
+#
+
+# exec gnome-session
+# exec startkde
+# exec startxfce4
+# exec icewm
+# exec openbox
+# exec blackbox
+exec fluxbox
+# exec ratpoison
+# exec dwm
+# ... or any other WM of your choosing ...
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.xsession b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.xsession
new file mode 100755
index 0000000..a16dc0b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/home/mythtv/.xsession
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+#
+# ~/.xsession
+#
+# Executed by xdm/gdm/kdm at login
+#
+
+/bin/bash --login -i ~/.xinitrc
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/post_process/hosts.allow b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/hosts.allow
new file mode 100644
index 0000000..ca19dbb
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/hosts.allow
@@ -0,0 +1,7 @@
+#
+# /etc/hosts.allow
+#
+ALL: 192.168.
+ALL: 10.
+ALL: 127.0.0.1
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/post_process/hosts.deny b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/hosts.deny
new file mode 100755
index 0000000..ca30ab4
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/hosts.deny
@@ -0,0 +1,6 @@
+#
+# /etc/hosts.deny
+#
+ALL
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/post_process/menu.lst b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/menu.lst
new file mode 100755
index 0000000..ce33757
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/menu.lst
@@ -0,0 +1,60 @@
+# Config file for GRUB - The GNU GRand Unified Bootloader
+# /boot/grub/menu.lst
+
+# DEVICE NAME CONVERSIONS
+#
+# Linux Grub
+# -------------------------
+# /dev/fd0 (fd0)
+# /dev/hda (hd0)
+# /dev/hdb2 (hd1,1)
+# /dev/hda3 (hd0,2)
+#
+
+# FRAMEBUFFER RESOLUTION SETTINGS
+# +-------------------------------------------------+
+# | 640x480 800x600 1024x768 1280x1024
+# ----+--------------------------------------------
+# 256 | 0x301=769 0x303=771 0x305=773 0x307=775
+# 32K | 0x310=784 0x313=787 0x316=790 0x319=793
+# 64K | 0x311=785 0x314=788 0x317=791 0x31A=794
+# 16M | 0x312=786 0x315=789 0x318=792 0x31B=795
+# +-------------------------------------------------+
+
+# general configuration:
+timeout 5
+default 0
+#color light-blue/black light-cyan/blue
+
+# boot sections follow
+# each is implicitly numbered from 0 in the order of appearance below
+#
+# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
+#
+#-*
+hiddenmenu
+
+# (0) normal
+title LinHes
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit console=tty1
+initrd /boot/kernel26.img
+
+# (1) bootsplash
+title LinHes-splashy
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit quiet vga=0x318 splash=silent,theme:darch console=tty1
+initrd /boot/kernel26.img
+
+# (2) noautologin
+title STB-nologin
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit quiet vga=0x318 splash=silent,theme:darch console=tty1 noautologin
+initrd /boot/kernel26.img
+
+
+# (3) normal
+title LinHes-init
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro console=tty1
+initrd /boot/kernel26.img
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/post_process/rc.conf b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/rc.conf
new file mode 100755
index 0000000..856b0be
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/rc.conf
@@ -0,0 +1,113 @@
+#
+# /etc/rc.conf - Main Configuration for Arch Linux
+#
+
+#
+# -----------------------------------------------------------------------
+# LOCALIZATION
+# -----------------------------------------------------------------------
+#
+# LOCALE: available languages can be listed with the 'locale -a' command
+# HARDWARECLOCK: set to "UTC" or "localtime"
+# TIMEZONE: timezones are found in /usr/share/zoneinfo
+# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
+# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
+# CONSOLEMAP: found in /usr/share/kbd/consoletrans
+# USECOLOR: use ANSI color sequences in startup messages
+#
+LOCALE="en_US.utf8"
+HARDWARECLOCK="UTC"
+TIMEZONE="US/Central"
+KEYMAP="us"
+CONSOLEFONT=
+CONSOLEMAP=
+USECOLOR="yes"
+
+#
+# -----------------------------------------------------------------------
+# HARDWARE
+# -----------------------------------------------------------------------
+#
+# Scan hardware and load required modules at bootup
+MOD_AUTOLOAD="yes"
+if [ -f /etc/systemconfig ]
+then
+ . /etc/systemconfig
+fi
+
+if [ x$Audiotype = xOSS -a ! -f /tmp/.alsatest ]
+then
+ ALSABLACKLIST="soundcore"
+else
+ if [ x$Audiotype = xOSS ]
+ then
+ ALSABLACKLIST="soundcore"
+ else
+ ALSABLACKLIST=""
+ fi
+fi
+
+# Module Blacklist - modules in this list will never be loaded by udev
+MOD_BLACKLIST=($ALSABLACKLIST)
+#
+# Modules to load at boot-up (in this order)
+# - prefix a module with a ! to blacklist it
+#
+MODULES=()
+# Scan for LVM volume groups at startup, required if you use LVM
+USELVM="no"
+
+#
+# -----------------------------------------------------------------------
+# NETWORKING
+# -----------------------------------------------------------------------
+#
+HOSTNAME=`cat /etc/hostname`
+
+#The following is only used on the install. After the first boot everything is set from /etc/net.
+
+
+#
+# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available
+# interfaces.
+#
+# Interfaces to start at boot-up (in this order)
+# Declare each interface then list in INTERFACES
+# - prefix an entry in INTERFACES with a ! to disable it
+# - no hyphens in your interface names - Bash doesn't like it
+#
+# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
+#
+lo="lo 127.0.0.1"
+#eth0="dhcp"
+INTERFACES=(lo )
+#
+# Routes to start at boot-up (in this order)
+# Declare each route then list in ROUTES
+# - prefix an entry in ROUTES with a ! to disable it
+#
+gateway="default gw 192.168.0.1"
+ROUTES=(!gateway)
+#
+# Enable these network profiles at boot-up. These are only useful
+# if you happen to need multiple network configurations (ie, laptop users)
+# - set to 'menu' to present a menu during boot-up (dialog package required)
+# - prefix an entry with a ! to disable it
+#
+# Network profiles are found in /etc/network-profiles
+#
+#NET_PROFILES=(main)
+
+#
+# -----------------------------------------------------------------------
+# DAEMONS
+# -----------------------------------------------------------------------
+#
+# Daemons to start at boot-up (in this order)
+# - prefix a daemon with a ! to disable it
+# - prefix a daemon with a @ to start it up in the background
+#
+#DAEMONS=(syslog-ng network netfs crond)
+DAEMONS=(!syslog-ng !hotplug !pcmcia network mysqld dbus avahi-daemon)
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/post_process/rc.shutdown b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/rc.shutdown
new file mode 100755
index 0000000..1a8cdbe
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/rc.shutdown
@@ -0,0 +1,104 @@
+#!/bin/bash
+#
+# /etc/rc.shutdown
+#
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+# avoid staircase effect
+/bin/stty onlcr
+
+echo " "
+printhl "Initiating Shutdown..."
+echo " "
+
+if [ -x /etc/rc.local.shutdown ]; then
+ /etc/rc.local.shutdown
+fi
+
+if [ "$PREVLEVEL" = "3" -o "$PREVLEVEL" = "5" ]; then
+ # Shutdown daemons
+ let i=${#DAEMONS[@]}
+ while [[ i -ge 0 ]]; do
+ if [[ `echo ${DAEMONS[$i]} | grep '^[^\!]' | wc -l` -eq 1 ]]; then
+ /etc/rc.d/${DAEMONS[$i]#@} stop
+ fi
+ let i=i-1
+ done
+ # find any leftover daemons and shut them down
+ if [ -d /var/run/daemons ]; then
+ for daemon in `ls /var/run/daemons`; do
+ /etc/rc.d/$daemon stop
+ done
+ fi
+fi
+
+# Terminate all processes
+stat_busy "Sending SIGTERM To Processes"
+/sbin/killall5 -15 &> /dev/null
+/bin/sleep 5
+stat_done
+
+stat_busy "Sending SIGKILL To Processes"
+/sbin/killall5 -9 &> /dev/null
+/bin/sleep 1
+stat_done
+
+stat_busy "Saving Random Seed"
+/bin/dd if=/dev/urandom of=/var/run/random-seed count=1 bs=512 2> /dev/null
+stat_done
+
+stat_busy "Saving System Clock"
+if [ "$HARDWARECLOCK" = "UTC" ]; then
+ /sbin/hwclock --directisa --utc --systohc
+else
+ /sbin/hwclock --directisa --localtime --systohc
+fi
+stat_done
+
+# removing psmouse module to fix some reboot issues on newer laptops
+modprobe -r psmouse >/dev/null 2>&1
+
+# Write to wtmp file before unmounting
+/sbin/halt -w
+
+stat_busy "Deactivating Swap"
+/sbin/swapoff -a
+stat_done
+
+stat_busy "Unmounting Filesystems"
+/bin/umount -a
+stat_done
+
+if [ "$USELVM" = "yes" -o "$USELVM" = "YES" ]; then
+ if [ -d /etc/lvm -a -x /sbin/lvm ]; then
+ /bin/mount -n -t sysfs none /sys 2>/dev/null
+ if [ -d /sys/block ]; then
+ stat_busy "Deactivating LVM2 groups"
+ /sbin/lvm vgchange --ignorelockingfailure -a n
+ stat_done
+ umount /sys
+ fi
+ fi
+fi
+
+stat_busy "Remounting Root Filesystem Read-only"
+/bin/mount -n -o remount,ro /
+stat_done
+exit 0
+# Power off or reboot
+if [ "$RUNLEVEL" = "0" ]; then
+ printsep
+ printhl "${C_H2}POWER OFF"
+ /sbin/poweroff -d -f -h -i
+else
+ printsep
+ printhl "${C_H2}REBOOTING"
+ # adding kexec support
+ [ -x /usr/sbin/kexec ] && /usr/sbin/kexec -e > /dev/null 2>&1
+ /sbin/reboot -d -f -i
+fi
+
+# End of file
+# vim: set ts=2 noet:
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/post_process/tweak.sh b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/tweak.sh
new file mode 100755
index 0000000..5c73cf4
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/post_process/tweak.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+useradd -m -s /bin/bash mythtv -G audio,video,optical,storage,users
+echo 'setting mythtv password to "a" '
+passwd mythtv <<EOF
+a
+a
+EOF
+
+echo 'setting root password to "a" '
+passwd root <<EOF
+a
+a
+EOF
+
+#edit /home/mythtv/.xinitrc and uncomment exec fluxbox
+cp -rvpf /.tweak/home/mythtv /home/
+
+
+
+chown -R mythtv.mythtv /home/mythtv/
+
+
+
+cp -f /.tweak/hosts.allow /etc/hosts.allow
+cp -f /.tweak/securetty /etc/securetty
+cp -f /.tweak/rc.conf /etc/rc.conf
+#cp -f rc.local /etc/rc.local
+#cp -f locale.gen /etc/locale.gen
+
+cp -f /.tweak/rc.shutdown /etc/rc.shutdown
+cp -f /.tweak/menu.lst /boot/grub/menu.lst
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/pre-process.sh b/build_tools/clarch/larch/profiles/i586-testing-local/pre-process.sh
new file mode 100755
index 0000000..5bc1f9c
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/pre-process.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+rm -f overlay.xpk
+if [ -d overlay/home/mythtv ]
+then
+ chown -R 1000 overlay/home/mythtv
+fi
+./create_overlay.sh
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/rcconfx b/build_tools/clarch/larch/profiles/i586-testing-local/rcconfx
new file mode 100644
index 0000000..23e671e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/rcconfx
@@ -0,0 +1,19 @@
+#
+# patch file for /etc/rc.conf
+#
+
+LOCALE="en_US.utf8"
+HARDWARECLOCK="UTC"
+TIMEZONE="UTC"
+KEYMAP="us"
+
+MODULES=(floppy)
+
+HOSTNAME="larch5"
+
+USELVM="yes"
+
+#eth0="dhcp"
+
+DAEMONS=(syslog-ng network mysqld dbus hal !slim sshd)
+SPLASH="splashy"
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/X11/xinit/startx.custom b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/X11/xinit/startx.custom
new file mode 100644
index 0000000..8e3ec5e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/X11/xinit/startx.custom
@@ -0,0 +1,22 @@
+if grep -v nox /proc/cmdline &>/dev/null && \
+ [ -z "$DISPLAY" ] && echo $(tty) | grep /vc/1 &>/dev/null; then
+ if grep i810 /proc/cmdline &>/dev/null; then
+ startx -- -config xorg.conf.i810
+ else
+ startx
+ fi
+
+ # Maybe there should be some code here to handle a failed startx?
+
+ # The 'return' value is at /tmp/xlogout
+ # If there is nothing there, switch user to 'newuser'
+ # If there is also nothing there, login as root
+ # - if already root, fall through to terminal
+
+ if [ -f /tmp/xlogout ] || [ -f /tmp/newuser ]; then
+ logout
+ elif [ ${UID} -ne 0 ]; then
+ echo "root" >/tmp/newuser
+ logout
+ fi
+fi
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/X11/xinit/xinitrc.custom b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/X11/xinit/xinitrc.custom
new file mode 100644
index 0000000..5f04171
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/X11/xinit/xinitrc.custom
@@ -0,0 +1,4 @@
+# Set the keymap
+xkmap-set
+
+exec fluxbox
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/X11/xorg.conf b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/X11/xorg.conf
new file mode 100644
index 0000000..6d11b2e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/X11/xorg.conf
@@ -0,0 +1,49 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ Identifier "Card0"
+ Driver "vesa"
+EndSection
+
+Section "Monitor"
+ Identifier "Monitor0"
+ HorizSync 30.0 - 65.0
+ VertRefresh 50.0 - 75.0
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ DefaultDepth 16
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ Modes "1024x768" "800x600"
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/X11/xorg.conf.i810 b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/X11/xorg.conf.i810
new file mode 100644
index 0000000..9615569
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/X11/xorg.conf.i810
@@ -0,0 +1,59 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ ### Available Driver options are:-
+ ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
+ ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
+ ### [arg]: arg optional
+ #Option "NoAccel" # [<bool>]
+ #Option "SWcursor" # [<bool>]
+ #Option "ColorKey" # <i>
+ #Option "CacheLines" # <i>
+ #Option "Dac6Bit" # [<bool>]
+ #Option "DRI" # [<bool>]
+ #Option "NoDDC" # [<bool>]
+ #Option "ShowCache" # [<bool>]
+ #Option "XvMCSurfaces" # <i>
+ #Option "PageFlip" # [<bool>]
+ Option "DRI" "False"
+ #Option "AccelMethod" "exa"
+ #Option "MigrationHeuristic" "greedy"
+ #Option "ExaNoComposite" "False"
+ Identifier "Card0"
+ Driver "intel"
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/X11/xorg.conf.i810.2 b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/X11/xorg.conf.i810.2
new file mode 100644
index 0000000..a295b38
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/X11/xorg.conf.i810.2
@@ -0,0 +1,67 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ ### Available Driver options are:-
+ ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
+ ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
+ ### [arg]: arg optional
+ #Option "NoAccel" # [<bool>]
+ #Option "SWcursor" # [<bool>]
+ #Option "ColorKey" # <i>
+ #Option "CacheLines" # <i>
+ #Option "Dac6Bit" # [<bool>]
+ #Option "DRI" # [<bool>]
+ #Option "NoDDC" # [<bool>]
+ #Option "ShowCache" # [<bool>]
+ #Option "XvMCSurfaces" # <i>
+ #Option "PageFlip" # [<bool>]
+ Option "DRI" "False"
+ #Option "AccelMethod" "exa"
+ #Option "MigrationHeuristic" "greedy"
+ #Option "ExaNoComposite" "False"
+ Identifier "Card0"
+ Driver "intel"
+EndSection
+
+Section "Monitor"
+ Identifier "Monitor0"
+ HorizSync 30.0 - 65.0
+ VertRefresh 50.0 - 75.0
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ DefaultDepth 16
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ Modes "1024x768" "800x600"
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/X11/xorg.conf.vesa b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/X11/xorg.conf.vesa
new file mode 100644
index 0000000..6d11b2e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/X11/xorg.conf.vesa
@@ -0,0 +1,49 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ Identifier "Card0"
+ Driver "vesa"
+EndSection
+
+Section "Monitor"
+ Identifier "Monitor0"
+ HorizSync 30.0 - 65.0
+ VertRefresh 50.0 - 75.0
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ DefaultDepth 16
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ Modes "1024x768" "800x600"
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/conf.d/dhcpcd b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/conf.d/dhcpcd
new file mode 100644
index 0000000..ab53c30
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/conf.d/dhcpcd
@@ -0,0 +1,6 @@
+#
+# Arguments to be passed to the DHCP client daemon
+#
+
+DHCPCD_ARGS="-t 10 -h $HOSTNAME"
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/hosts.allow b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/hosts.allow
new file mode 100644
index 0000000..19bc4d8
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/hosts.allow
@@ -0,0 +1,13 @@
+#
+# /etc/hosts.allow
+#
+
+ALL: 127.0.0.1
+
+# To allow ssh in from anywhere
+sshd: ALL
+
+# To allow ssh in from local net (example)
+#sshd: 192.168.178.0/255.255.255.0
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/inittab b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/inittab
new file mode 100644
index 0000000..2de483f
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/inittab
@@ -0,0 +1,43 @@
+#
+# /etc/inittab
+#
+
+# Runlevels:
+# 0 Halt
+# 1(S) Single-user
+# 2 Not used
+# 3 Multi-user
+# 4 Not used
+# 5 X11
+# 6 Reboot
+
+## Only one of the following two lines can be uncommented!
+# Boot to console
+id:5:initdefault:
+# Boot to X11
+#id:5:initdefault:
+
+rc::sysinit:/etc/rc.sysinit
+rs:S1:wait:/etc/rc.single
+rm:2345:wait:/etc/rc.multi
+rh:06:wait:/etc/rc.shutdown
+su:S:wait:/sbin/sulogin -p
+
+# -8 options fixes umlauts problem on login
+c1:2345:respawn:/sbin/agetty -8 38400 vc/1 linux -n -l /etc/ulogin
+c2:2345:respawn:/sbin/agetty -8 38400 vc/2 linux
+c3:2345:respawn:/sbin/agetty -8 38400 vc/3 linux
+c4:2345:respawn:/sbin/agetty -8 38400 vc/4 linux
+c5:2345:respawn:/sbin/agetty -8 38400 vc/5 linux
+c6:2345:respawn:/sbin/agetty -8 38400 vc/6 linux
+c7:5:respawn:/usr/bin/openvt -fwc 6 -- /bin/su - mythtv -c /usr/bin/startx >& /dev/null
+
+ca::ctrlaltdel:/sbin/shutdown -t3 -r now
+
+# Example lines for starting a login manager
+#x:5:respawn:/usr/bin/xdm -nodaemon
+#x:5:respawn:/usr/sbin/gdm -nodaemon
+#x:5:respawn:/opt/kde/bin/kdm -nodaemon
+#x:5:respawn:/usr/bin/slim >& /dev/null
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/inittab.larchsave b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/inittab.larchsave
new file mode 100644
index 0000000..2de483f
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/inittab.larchsave
@@ -0,0 +1,43 @@
+#
+# /etc/inittab
+#
+
+# Runlevels:
+# 0 Halt
+# 1(S) Single-user
+# 2 Not used
+# 3 Multi-user
+# 4 Not used
+# 5 X11
+# 6 Reboot
+
+## Only one of the following two lines can be uncommented!
+# Boot to console
+id:5:initdefault:
+# Boot to X11
+#id:5:initdefault:
+
+rc::sysinit:/etc/rc.sysinit
+rs:S1:wait:/etc/rc.single
+rm:2345:wait:/etc/rc.multi
+rh:06:wait:/etc/rc.shutdown
+su:S:wait:/sbin/sulogin -p
+
+# -8 options fixes umlauts problem on login
+c1:2345:respawn:/sbin/agetty -8 38400 vc/1 linux -n -l /etc/ulogin
+c2:2345:respawn:/sbin/agetty -8 38400 vc/2 linux
+c3:2345:respawn:/sbin/agetty -8 38400 vc/3 linux
+c4:2345:respawn:/sbin/agetty -8 38400 vc/4 linux
+c5:2345:respawn:/sbin/agetty -8 38400 vc/5 linux
+c6:2345:respawn:/sbin/agetty -8 38400 vc/6 linux
+c7:5:respawn:/usr/bin/openvt -fwc 6 -- /bin/su - mythtv -c /usr/bin/startx >& /dev/null
+
+ca::ctrlaltdel:/sbin/shutdown -t3 -r now
+
+# Example lines for starting a login manager
+#x:5:respawn:/usr/bin/xdm -nodaemon
+#x:5:respawn:/usr/sbin/gdm -nodaemon
+#x:5:respawn:/opt/kde/bin/kdm -nodaemon
+#x:5:respawn:/usr/bin/slim >& /dev/null
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/larch-shutdown b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/larch-shutdown
new file mode 100644
index 0000000..d614d4b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/larch-shutdown
@@ -0,0 +1,47 @@
+# Functions used by rc.shutdown
+# Modified versions for larch live systems
+
+f_saveclock ()
+{
+ :
+}
+
+f_swapoff ()
+{
+ ############################# Include session saving functions
+ # . /opt/larch-live/session-save/shutdown2
+ # if [ -f /tmp/checkse ]; then
+ # . /tmp/checkse
+ #else
+ # checkse
+ # fi
+
+ if [ -n "${saving}" ] && ! session_save; then
+ echo
+ echo "If you know what you are doing, you may be able to recover"
+ echo "something from this unpleasant situation."
+ echo
+ echo "You may use the command line to investigate further ..."
+ echo
+ echo "When finished please enter 'exit', the shutdown process will"
+ echo "then continue."
+ sh -i
+ fi
+
+ #############################
+
+ stat_busy "Deactivating Swap"
+ /sbin/swapoff -a
+ stat_done
+}
+
+f_remountro ()
+{
+ if [ -n "${ejectdev}" ]; then
+ echo "Ejecting live CD"
+ eject ${ejectdev}
+ echo "sleeping for 6 seconds"
+ sleep 6
+
+ fi
+}
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/ppp/options b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/ppp/options
new file mode 100644
index 0000000..237c390
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/ppp/options
@@ -0,0 +1,352 @@
+# /etc/ppp/options
+#
+# Originally created by Jim Knoble <jmknoble@mercury.interpath.net>
+# Modified for Debian by alvar Bray <alvar@meiko.co.uk>
+# Modified for PPP Server setup by Christoph Lameter <clameter@debian.org>
+# Modified for ArchLinux by Manolis Tzanidakis <manolis@archlinux.org>
+#
+# To quickly see what options are active in this file, use this command:
+# egrep -v '#|^ *$' /etc/ppp/options
+
+# Specify which DNS Servers the incoming Win95 or WinNT Connection should use
+# Two Servers can be remotely configured
+# ms-dns 192.168.1.1
+# ms-dns 192.168.1.2
+
+# Specify which WINS Servers the incoming connection Win95 or WinNT should use
+# ms-wins 192.168.1.50
+# ms-wins 192.168.1.51
+
+# Run the executable or shell command specified after pppd has
+# terminated the link. This script could, for example, issue commands
+# to the modem to cause it to hang up if hardware modem control signals
+# were not available.
+#disconnect "chat -- \d+++\d\c OK ath0 OK"
+
+# async character map -- 32-bit hex; each bit is a character
+# that needs to be escaped for pppd to receive it. 0x00000001
+# represents '\x01', and 0x80000000 represents '\x1f'.
+asyncmap 0
+
+# Require the peer to authenticate itself before allowing network
+# packets to be sent or received.
+# Please do not disable this setting. It is expected to be standard in
+# future releases of pppd. Use the call option (see manpage) to disable
+# authentication for specific peers.
+#auth
+
+# Use hardware flow control (i.e. RTS/CTS) to control the flow of data
+# on the serial port.
+crtscts
+
+# Use software flow control (i.e. XON/XOFF) to control the flow of data
+# on the serial port.
+#xonxoff
+
+# Specifies that certain characters should be escaped on transmission
+# (regardless of whether the peer requests them to be escaped with its
+# async control character map). The characters to be escaped are
+# specified as a list of hex numbers separated by commas. Note that
+# almost any character can be specified for the escape option, unlike
+# the asyncmap option which only allows control characters to be
+# specified. The characters which may not be escaped are those with hex
+# values 0x20 - 0x3f or 0x5e.
+#escape 11,13,ff
+
+# Don't use the modem control lines.
+#local
+
+# Specifies that pppd should use a UUCP-style lock on the serial device
+# to ensure exclusive access to the device.
+lock
+
+# Don't show the passwords when logging the contents of PAP packets.
+# This is the default.
+hide-password
+
+# When logging the contents of PAP packets, this option causes pppd to
+# show the password string in the log message.
+#show-password
+
+# Use the modem control lines. On Ultrix, this option implies hardware
+# flow control, as for the crtscts option. (This option is not fully
+# implemented.)
+modem
+
+# Set the MRU [Maximum Receive Unit] value to <n> for negotiation. pppd
+# will ask the peer to send packets of no more than <n> bytes. The
+# minimum MRU value is 128. The default MRU value is 1500. A value of
+# 296 is recommended for slow links (40 bytes for TCP/IP header + 256
+# bytes of data).
+#mru 542
+
+# Set the interface netmask to <n>, a 32 bit netmask in "decimal dot"
+# notation (e.g. 255.255.255.0).
+#netmask 255.255.255.0
+
+# Disables the default behaviour when no local IP address is specified,
+# which is to determine (if possible) the local IP address from the
+# hostname. With this option, the peer will have to supply the local IP
+# address during IPCP negotiation (unless it specified explicitly on the
+# command line or in an options file).
+#noipdefault
+
+# Enables the "passive" option in the LCP. With this option, pppd will
+# attempt to initiate a connection; if no reply is received from the
+# peer, pppd will then just wait passively for a valid LCP packet from
+# the peer (instead of exiting, as it does without this option).
+#passive
+
+# With this option, pppd will not transmit LCP packets to initiate a
+# connection until a valid LCP packet is received from the peer (as for
+# the "passive" option with old versions of pppd).
+#silent
+
+# Don't request or allow negotiation of any options for LCP and IPCP
+# (use default values).
+#-all
+
+# Disable Address/Control compression negotiation (use default, i.e.
+# address/control field disabled).
+#-ac
+
+# Disable asyncmap negotiation (use the default asyncmap, i.e. escape
+# all control characters).
+#-am
+
+# Don't fork to become a background process (otherwise pppd will do so
+# if a serial device is specified).
+#-detach
+
+# Disable IP address negotiation (with this option, the remote IP
+# address must be specified with an option on the command line or in
+# an options file).
+#-ip
+
+# Disable IPCP negotiation and IP communication. This option should
+# only be required if the peer is buggy and gets confused by requests
+# from pppd for IPCP negotiation.
+#noip
+
+# Disable magic number negotiation. With this option, pppd cannot
+# detect a looped-back line.
+#-mn
+
+# Disable MRU [Maximum Receive Unit] negotiation (use default, i.e.
+# 1500).
+#-mru
+
+# Disable protocol field compression negotiation (use default, i.e.
+# protocol field compression disabled).
+#-pc
+
+# Require the peer to authenticate itself using PAP.
+#+pap
+
+# Don't agree to authenticate using PAP.
+#-pap
+
+# Require the peer to authenticate itself using CHAP [Cryptographic
+# Handshake Authentication Protocol] authentication.
+#+chap
+
+# Don't agree to authenticate using CHAP.
+#-chap
+
+# Disable negotiation of Van Jacobson style IP header compression (use
+# default, i.e. no compression).
+#-vj
+
+# Increase debugging level (same as -d). If this option is given, pppd
+# will log the contents of all control packets sent or received in a
+# readable form. The packets are logged through syslog with facility
+# daemon and level debug. This information can be directed to a file by
+# setting up /etc/syslog.conf appropriately (see syslog.conf(5)). (If
+# pppd is compiled with extra debugging enabled, it will log messages
+# using facility local2 instead of daemon).
+#debug
+
+# Append the domain name <d> to the local host name for authentication
+# purposes. For example, if gethostname() returns the name porsche,
+# but the fully qualified domain name is porsche.Quotron.COM, you would
+# use the domain option to set the domain name to Quotron.COM.
+#domain <d>
+
+# Enable debugging code in the kernel-level PPP driver. The argument n
+# is a number which is the sum of the following values: 1 to enable
+# general debug messages, 2 to request that the contents of received
+# packets be printed, and 4 to request that the contents of transmitted
+# packets be printed.
+#kdebug n
+
+# Set the MTU [Maximum Transmit Unit] value to <n>. Unless the peer
+# requests a smaller value via MRU negotiation, pppd will request that
+# the kernel networking code send data packets of no more than n bytes
+# through the PPP network interface.
+#mtu <n>
+
+# Set the name of the local system for authentication purposes to <n>.
+# This is a privileged option. With this option, pppd will use lines in the
+# secrets files which have <n> as the second field when looking for a
+# secret to use in authenticating the peer. In addition, unless overridden
+# with the user option, <n> will be used as the name to send to the peer
+# when authenticating the local system to the peer. (Note that pppd does
+# not append the domain name to <n>.)
+#name <n>
+
+# Enforce the use of the hostname as the name of the local system for
+# authentication purposes (overrides the name option).
+#usehostname
+
+# Set the assumed name of the remote system for authentication purposes
+# to <n>.
+#remotename <n>
+
+# Add an entry to this system's ARP [Address Resolution Protocol]
+# table with the IP address of the peer and the Ethernet address of this
+# system.
+proxyarp
+
+# Use the system password database for authenticating the peer using
+# PAP. Note: mgetty already provides this option. If this is specified
+# then dialin from users using a script under Linux to fire up ppp wont work.
+# login
+
+# If this option is given, pppd will send an LCP echo-request frame to the
+# peer every n seconds. Normally the peer should respond to the echo-request
+# by sending an echo-reply. This option can be used with the
+# lcp-echo-failure option to detect that the peer is no longer connected.
+lcp-echo-interval 30
+
+# If this option is given, pppd will presume the peer to be dead if n
+# LCP echo-requests are sent without receiving a valid LCP echo-reply.
+# If this happens, pppd will terminate the connection. Use of this
+# option requires a non-zero value for the lcp-echo-interval parameter.
+# This option can be used to enable pppd to terminate after the physical
+# connection has been broken (e.g., the modem has hung up) in
+# situations where no hardware modem control lines are available.
+lcp-echo-failure 4
+
+# Set the LCP restart interval (retransmission timeout) to <n> seconds
+# (default 3).
+#lcp-restart <n>
+
+# Set the maximum number of LCP terminate-request transmissions to <n>
+# (default 3).
+#lcp-max-terminate <n>
+
+# Set the maximum number of LCP configure-request transmissions to <n>
+# (default 10).
+#lcp-max-configure <n>
+
+# Set the maximum number of LCP configure-NAKs returned before starting
+# to send configure-Rejects instead to <n> (default 10).
+#lcp-max-failure <n>
+
+# Set the IPCP restart interval (retransmission timeout) to <n>
+# seconds (default 3).
+#ipcp-restart <n>
+
+# Set the maximum number of IPCP terminate-request transmissions to <n>
+# (default 3).
+#ipcp-max-terminate <n>
+
+# Set the maximum number of IPCP configure-request transmissions to <n>
+# (default 10).
+#ipcp-max-configure <n>
+
+# Set the maximum number of IPCP configure-NAKs returned before starting
+# to send configure-Rejects instead to <n> (default 10).
+#ipcp-max-failure <n>
+
+# Set the PAP restart interval (retransmission timeout) to <n> seconds
+# (default 3).
+#pap-restart <n>
+
+# Set the maximum number of PAP authenticate-request transmissions to
+# <n> (default 10).
+#pap-max-authreq <n>
+
+# Set the maximum time that pppd will wait for the peer to authenticate
+# itself with PAP to <n> seconds (0 means no limit).
+#pap-timeout <n>
+
+# Set the CHAP restart interval (retransmission timeout for
+# challenges) to <n> seconds (default 3).
+#chap-restart <n>
+
+# Set the maximum number of CHAP challenge transmissions to <n>
+# (default 10).
+#chap-max-challenge
+
+# If this option is given, pppd will rechallenge the peer every <n>
+# seconds.
+#chap-interval <n>
+
+# With this option, pppd will accept the peer's idea of our local IP
+# address, even if the local IP address was specified in an option.
+#ipcp-accept-local
+
+# With this option, pppd will accept the peer's idea of its (remote) IP
+# address, even if the remote IP address was specified in an option.
+#ipcp-accept-remote
+
+# Disable the IPXCP and IPX protocols.
+# To let pppd pass IPX packets comment this out --- you'll probably also
+# want to install ipxripd, and have the Internal IPX Network option enabled
+# in your kernel. /usr/doc/HOWTO/IPX-HOWTO.gz contains more info.
+noipx
+
+# Exit once a connection has been made and terminated. This is the default,
+# unless the `persist' or `demand' option has been specified.
+#nopersist
+
+# Do not exit after a connection is terminated; instead try to reopen
+# the connection.
+#persist
+
+# Terminate after n consecutive failed connection attempts.
+# A value of 0 means no limit. The default value is 10.
+#maxfail <n>
+
+# Initiate the link only on demand, i.e. when data traffic is present.
+# With this option, the remote IP address must be specified by the user on
+# the command line or in an options file. Pppd will initially configure
+# the interface and enable it for IP traffic without connecting to the peer.
+# When traffic is available, pppd will connect to the peer and perform
+# negotiation, authentication, etc. When this is completed, pppd will
+# commence passing data packets (i.e., IP packets) across the link.
+#demand
+
+# Specifies that pppd should disconnect if the link is idle for <n> seconds.
+# The link is idle when no data packets (i.e. IP packets) are being sent or
+# received. Note: it is not advisable to use this option with the persist
+# option without the demand option. If the active-filter option is given,
+# data packets which are rejected by the specified activity filter also
+# count as the link being idle.
+#idle <n>
+
+# Specifies how many seconds to wait before re-initiating the link after
+# it terminates. This option only has any effect if the persist or demand
+# option is used. The holdoff period is not applied if the link was
+# terminated because it was idle.
+#holdoff <n>
+
+# Wait for up n milliseconds after the connect script finishes for a valid
+# PPP packet from the peer. At the end of this time, or when a valid PPP
+# packet is received from the peer, pppd will commence negotiation by
+# sending its first LCP packet. The default value is 1000 (1 second).
+# This wait period only applies if the connect or pty option is used.
+#connect-delay <n>
+
+# Packet filtering: for more information, see pppd(8)
+# Any packets matching the filter expression will be interpreted as link
+# activity, and will cause a "demand" connection to be activated, and reset
+# the idle connection timer. (idle option)
+# The filter expression is akin to that of tcpdump(1)
+#active-filter <filter-expression>
+
+# uncomment the line below this if you use PPPoE
+#plugin /usr/lib/pppd/plugins/pppoe.so
+
+# ---<End of File>---
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/rc.local b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/rc.local
new file mode 100755
index 0000000..216ec8e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/rc.local
@@ -0,0 +1,16 @@
+#!/bin/bash
+#
+# /etc/rc.local: Local multi-user startup script.
+#
+
+#install initial database
+pacman -S --noconfirm mythdb-initial 2>/dev/null
+
+# Set up automatically logged in user (larch live system only)
+if [ -f /.livesys/autologin ]; then
+ cp /.livesys/autologin /tmp/newuser
+fi
+
+# Restore saved sound volume, etc.
+#alsactl restore
+#install initial database
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/rc.local.orig b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/rc.local.orig
new file mode 100755
index 0000000..47b24ef
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/rc.local.orig
@@ -0,0 +1,7 @@
+#!/bin/bash
+#
+# /etc/rc.local: Local multi-user startup script.
+#
+
+# Restore saved sound volume, etc.
+alsactl restore
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/rc.local.shutdown b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/rc.local.shutdown
new file mode 100755
index 0000000..2b5f735
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/rc.local.shutdown
@@ -0,0 +1,7 @@
+#!/bin/bash
+#
+# /etc/rc.local.shutdown: Local shutdown script.
+#
+
+# Save sound volume, etc.
+alsactl store
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/skel/.bash_profile b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/skel/.bash_profile
new file mode 100644
index 0000000..600bd9b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/skel/.bash_profile
@@ -0,0 +1,3 @@
+. $HOME/.bashrc
+
+. /etc/X11/xinit/startx.custom
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/skel/.bashrc b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/skel/.bashrc
new file mode 100644
index 0000000..fcabce0
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/skel/.bashrc
@@ -0,0 +1,3 @@
+alias ls='ls --color=auto'
+PS1='[\u@\h \W]\$ '
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/skel/.xinitrc b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/skel/.xinitrc
new file mode 100644
index 0000000..c6febe5
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/skel/.xinitrc
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+#
+# ~/.xinitrc
+#
+# Executed by startx (run your window manager from here)
+#
+
+# exec gnome-session
+# exec startkde
+# exec startxfce4
+# exec icewm
+# exec openbox
+# exec blackbox
+exec fluxbox
+# exec ratpoison
+# exec dwm
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/skel/.xsession b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/skel/.xsession
new file mode 100755
index 0000000..a16dc0b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/skel/.xsession
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+#
+# ~/.xsession
+#
+# Executed by xdm/gdm/kdm at login
+#
+
+/bin/bash --login -i ~/.xinitrc
+
diff --git a/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/slim.conf b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/slim.conf
new file mode 100644
index 0000000..35ed579
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i586-testing-local/rootoverlay/etc/slim.conf
@@ -0,0 +1,79 @@
+# Path, X server and arguments (if needed)
+# Note: -xauth $authfile is automatically appended
+default_path ./:/bin:/usr/bin:/usr/local/bin:/usr/bin
+default_xserver /usr/bin/X
+xserver_arguments -nolisten tcp vt07
+
+# Commands for halt, login, etc.
+halt_cmd /sbin/shutdown -h now
+reboot_cmd /sbin/shutdown -r now
+console_cmd /usr/bin/terminal -x /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
+#suspend_cmd /usr/sbin/suspend
+
+# Full path to the xauth binary
+xauth_path /usr/bin/xauth
+
+# Xauth file for server
+authfile /var/run/slim.auth
+
+
+# Activate numlock when slim starts. Valid values: on|off
+# numlock on
+
+# Hide the mouse cursor (note: does not work with some WMs).
+# Valid values: true|false
+# hidecursor false
+
+# This command is executed after a succesful login.
+# you can place the %session and %theme variables
+# to handle launching of specific commands in .xinitrc
+# depending of chosen session and slim theme
+#
+# NOTE: if your system does not have bash you need
+# to adjust the command according to your preferred shell,
+# i.e. for freebsd use:
+# login_cmd exec /bin/sh - ~/.xinitrc %session
+login_cmd exec /bin/bash -login ~/.xinitrc %session
+
+# Commands executed when starting and exiting a session.
+# They can be used for registering a X11 session with
+# sessreg. You can use the %user variable
+#
+# sessionstart_cmd some command
+# sessionstop_cmd some command
+
+# Start in daemon mode. Valid values: yes | no
+# Note that this can overridden by the command line
+# option "-d"
+# daemon yes
+
+# Available sessions (first one is the default).
+# The current chosen session name is replaced in the login_cmd
+# above, so your login command can handle different sessions.
+# see the xinitrc.sample file shipped with slim sources
+sessions xfce4,icewm,wmaker,blackbox
+
+# Executed when pressing F11 (requires imagemagick)
+screenshot_cmd import -window root /slim.png
+
+# welcome message. Available variables: %host, %domain
+welcome_msg Welcome to %host
+
+# shutdown / reboot messages
+shutdown_msg The system is halting...
+reboot_msg The system is rebooting...
+
+# default user, leave blank or remove this line
+# for avoid pre-loading the username.
+#default_user simone
+
+# current theme, use comma separated list to specify a set to
+# randomly choose from
+current_theme dlarch
+
+# Lock file
+lockfile /var/lock/slim.lock
+
+# Log file
+logfile /var/log/slim.log
+
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/addedpacks b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/addedpacks
new file mode 100644
index 0000000..6668d64
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/addedpacks
@@ -0,0 +1,170 @@
+# These are needed to build a live CD
+linhes-live
+squashfs-tools
+lzop
+
+syslinux
+
+# You need a kernel.
+#kernel26 is now in 'base'
+aufs
+
+# To eject a cd
+eject
+
+# Useful for use as installer, etc.
+#ntfsprogs
+#parted
+
+#ddcxinfo-knoppix
+#hwd
+
+sudo
+
+lsof
+cdrkit
+dvd+rw-tools
+
+# Needed by the installer
+#python
+
+#base-devel
+#larch
+
+# generally useful tools which don't require X
+#mtools is required by syslinux
+openssh
+dosfstools
+alsa-lib
+alsa-oss
+alsa-utils
+cdparanoia
+cdrdao
+
+# Xorg packages
+xorg-server
+xorg-xkb-utils
+xorg-xauth
+xorg-server-utils
+xorg-xinit
+xorg-input-drivers
+xterm
+xorg-fonts-100dpi
+xorg-fonts-75dpi
+xorg-res-utils
+
+#xorg-video-drivers
+xf86-video-amd
+xf86-video-apm
+xf86-video-ark
+xf86-video-ati
+xf86-video-chips
+xf86-video-cirrus
+xf86-video-dummy
+xf86-video-fbdev
+xf86-video-glint
+xf86-video-i128
+xf86-video-i740
+#xf86-video-i810
+xf86-video-imstt
+xf86-video-intel
+xf86-video-mga
+xf86-video-neomagic
+xf86-video-nv
+xf86-video-radeonhd
+xf86-video-rendition
+xf86-video-s3
+xf86-video-s3virge
+xf86-video-savage
+xf86-video-siliconmotion
+xf86-video-sis
+xf86-video-sisusb
+#xf86-video-tdfx
+xf86-video-trident
+xf86-video-tseng
+xf86-video-unichrome
+xf86-video-v4l
+xf86-video-vesa
+xf86-video-vga
+#xf86-video-via
+xf86-video-vmware
+xf86-video-voodoo
+
+# X apps
+#luser
+#localed
+
+#xkmap
+
+#gparted
+#larchin
+
+#mythtv
+mythtv
+mytharchive
+mythbrowser
+mythcontrols
+mythflix
+mythgallery
+mythgame
+mythmusic
+mythphone
+myththemes
+mythweather
+mythweb
+mythvideo
+nuvexport
+lirc
+lirc-utils
+mysql
+xmltv
+esd
+
+#Window Manager
+fluxbox
+feh
+
+#Other
+dbus
+hal
+fftw2
+libcdaudio
+iptables
+pkgconfig
+taglib
+
+#MythVantage Installer deps
+bc
+mysql-python
+expect
+curl
+dnsutils
+
+#Wireless
+b43-fwcutter
+ipw2100-fw
+ipw2200-fw
+ipw3945
+ipw3945-ucode
+ipw3945d
+iwlwifi-3945-ucode
+iwlwifi-4965-ucode
+madwifi
+madwifi-utils
+ndiswrapper
+ndiswrapper-utils
+netcfg
+rt2500
+rt2x00-rt61-fw
+rt2x00-rt71w-fw
+tiacx
+tiacx-firmware
+wireless_tools
+wlan-ng26
+wlan-ng26-utils
+zd1211-firmware
+
+#----
+live-installer
+etcnet
+runit
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cache_packs b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cache_packs
new file mode 100644
index 0000000..b95e6f4
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cache_packs
@@ -0,0 +1 @@
+mythdb-initial
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cd-root/isolinux/isolinux.cfg b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cd-root/isolinux/isolinux.cfg
new file mode 100644
index 0000000..26a365a
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cd-root/isolinux/isolinux.cfg
@@ -0,0 +1,49 @@
+default vesamenu.c32
+prompt 0
+timeout 50
+
+MENU BACKGROUND vbg.jpg
+MENU COLOR border 31;40 #90ffff00 #00000000 std
+MENU COLOR sel 31;47 #00000000 #FFFFFF15 al
+
+MENU TITLE LinHES: The Linux Home Entertainment System
+
+label linux
+MENU LABEL LinHES with Splashy (default).
+kernel vmlinuz
+append initrd=larch.img vga=791 quiet splash
+
+label linux-nosplash
+MENU LABEL LinHES without splash screen.
+kernel vmlinuz
+append initrd=larch.img
+
+label linux-splash
+MENU LABEL LinHES with splash screen.
+kernel vmlinuz
+append initrd=larch.img vga=791 quiet splash
+
+label linux-i810
+MENU LABEL with Intel i810 driver (DRI disabled)
+kernel vmlinuz
+append initrd=larch.img i810
+
+label linux-nox
+MENU LABEL Boot to console (without X windowing)
+kernel vmlinuz
+append initrd=larch.img 3
+
+label linux-c2r
+MENU LABEL LinHES: copy-to-ram (also activates swap)
+kernel vmlinuz
+append initrd=larch.img c2r
+
+label linux-swap
+MENU LABEL LinHES: Use swap
+kernel vmlinuz
+append initrd=larch.img swap
+
+
+label memtest
+MENU LABEL Memory tester
+kernel memtest
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cd-root/isolinux/vbg.jpg b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cd-root/isolinux/vbg.jpg
new file mode 100644
index 0000000..43fbdd2
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cd-root/isolinux/vbg.jpg
Binary files differ
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cd-root/larch/copy/actions.rc b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cd-root/larch/copy/actions.rc
new file mode 100644
index 0000000..dd95b26
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cd-root/larch/copy/actions.rc
@@ -0,0 +1,3 @@
+type=0
+orientation=1
+
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cd-root/larch/copy/autologin b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cd-root/larch/copy/autologin
new file mode 100644
index 0000000..93ca142
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cd-root/larch/copy/autologin
@@ -0,0 +1 @@
+root \ No newline at end of file
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cd-root/larch/copy/bash_profile b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cd-root/larch/copy/bash_profile
new file mode 100644
index 0000000..c49349b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cd-root/larch/copy/bash_profile
@@ -0,0 +1 @@
+. $HOME/.bashrc
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cd-root/larch/copy/larch0 b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cd-root/larch/copy/larch0
new file mode 100644
index 0000000..c80b7c2
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/cd-root/larch/copy/larch0
@@ -0,0 +1,63 @@
+# This is a script 'sourced' from the installation script larch-tidy.
+# Its purpose is to remove custom live-only stuff from a just-installed
+# system.
+# ${INSTALL} is the path to the installed system root directory.
+
+rm "${INSTALL}/root/Desktop/Install Arch Linux.desktop"
+
+if [ -f ${INSTALL}/etc/rc.local.orig ]; then
+ mv ${INSTALL}/etc/rc.local.orig ${INSTALL}/etc/rc.local
+fi
+if [ -f ${INSTALL}/etc/rc.local.shutdown.orig ]; then
+ mv ${INSTALL}/etc/rc.local.shutdown.orig ${INSTALL}/etc/rc.local.shutdown
+fi
+
+# slim is currently started in inittab
+#sed -i '/^DAEMONS=/ s|!slim|@slim|' ${INSTALL}/etc/rc.conf
+
+# Copy xorg.conf.i810 to target xorg.conf if necessary
+if ! [ -f /etc/X11/xorg.conf ]; then
+ if grep i810 /proc/cmdline &>/dev/null; then
+ cp /etc/X11/xorg.conf.i810 ${INSTALL}/etc/X11/xorg.conf
+ fi
+fi
+
+#***************************************************#
+# Replace uses of larchquit in xfce panels and menu.#
+#***************************************************#
+### Unfortunately this isn't very simple. If anyone has a better way of
+### providing different Quit actions in the live version and the version
+### installed to disk from it, please let me know!
+### Maybe it would be better just to provide a special live quit desktop
+### icon which can be removed on installation, like the installation icon.
+
+defaultquit='<builtin name="Quit" cmd="Quit" icon="gnome-logout"/>'
+
+replacequit ()
+{
+ for f in ${INSTALL}$1/.config/xfce4/panel/*; do
+ if grep "^Exec=larchquit" ${f}; then
+ n=$( echo ${f} | sed "s|^.*-\([0-9]\+\).*|\1|" )
+ cp /.livesys/actions.rc \
+ ${INSTALL}$1/.config/xfce4/panel/actions-${n}.rc
+ rm ${f}
+
+ sed -i "s|=\"launcher\" id=\"${n}\"|=\"actions\" id=\"${n}\"|" \
+ ${INSTALL}$1/.config/xfce4/panel/panels.xml
+ fi
+ done
+
+ if [ -f ${INSTALL}$1/.bash_profile ]; then
+ sed -i "s|<app .*cmd=\"larchquit.*/>|${defaultquit}|" \
+ ${INSTALL}$1/.config/xfce4/desktop/menu.xml
+
+ cp /.livesys/xfce4-session.rc ${INSTALL}$1/.config/xfce4-session
+ cp /.livesys/bash_profile ${INSTALL}$1/.bash_profile
+ fi
+}
+
+for hd in $( cat ${INSTALL}/etc/passwd | cut -d':' -f6 | grep '^/home/' ) \
+ /root /etc/skel; do
+ replacequit ${hd} &>/dev/null
+done
+#***************************************************#
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/create_overlay.sh b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/create_overlay.sh
new file mode 100755
index 0000000..6a4fdee
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/create_overlay.sh
@@ -0,0 +1 @@
+../../run/xpack -r overlay overlay.xpk
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/locale.gen b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/locale.gen
new file mode 100644
index 0000000..760ec23
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/locale.gen
@@ -0,0 +1,5 @@
+# locales for larch (/etc/locale.gen)
+
+en_US ISO-8859-1
+en_US.UTF-8 UTF-8
+
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/overlay/home/mythtv/.fluxbox/apps b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/overlay/home/mythtv/.fluxbox/apps
new file mode 100644
index 0000000..5a2b8d6
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/overlay/home/mythtv/.fluxbox/apps
@@ -0,0 +1,2 @@
+[startup] {feh --bg-scale ~/.fluxbox/wallpaper.png}
+[startup] {sudo /usr/MythVantage/bin/mythvantage}
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/overlay/home/mythtv/.xinitrc b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/overlay/home/mythtv/.xinitrc
new file mode 100755
index 0000000..d988c98
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/overlay/home/mythtv/.xinitrc
@@ -0,0 +1,19 @@
+#!/bin/sh
+. /etc/profile
+#
+# ~/.xinitrc
+#
+# Executed by startx (run your window manager from here)
+#
+
+# exec gnome-session
+# exec startkde
+# exec startxfce4
+# exec icewm
+# exec openbox
+# exec blackbox
+# exec fluxbox
+# exec ratpoison
+# exec dwm
+# ... or any other WM of your choosing ...
+exec fluxbox
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/pacman.conf b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/pacman.conf
new file mode 100755
index 0000000..0ef6729
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/pacman.conf
@@ -0,0 +1,61 @@
+#
+# /etc/pacman.conf
+# from pacman.conf MV
+# NOTE: If you find a mirror that is geographically close to you, please
+# move it to the top of the server list, so pacman will choose it
+# first.
+#
+# To re-sort your mirror lists by ping/traceroute results, use the
+# /usr/bin/sortmirrors script. It requires the "netselect" package.
+#
+
+# See the pacman manpage for option directives
+
+#
+# GENERAL OPTIONS
+#
+[options]
+LogFile = /var/log/pacman.log
+NoUpgrade = etc/passwd etc/group etc/shadow etc/sudoers
+NoUpgrade = etc/fstab etc/raidtab etc/ld.so.conf
+NoUpgrade = etc/rc.conf etc/rc.local
+NoUpgrade = etc/modprobe.conf etc/modules.conf
+NoUpgrade = etc/lilo.conf boot/grub/menu.lst
+NoUpgrade = data/srv/hobbit/etc/bb-hosts
+NoUpgrade = etc/func/minion.conf
+
+HoldPkg = pacman glibc
+CacheDir = /data/var/cache/pacman/pkg
+#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
+
+#
+# REPOSITORIES
+# - can be defined here or included from another file
+# - pacman will search repositories in the order defined here.
+# - local/custom mirrors can be added here or in separate files
+#
+[core-testing]
+Server = http://knoppmyth.net/repo/i686/core
+
+[extra-testing]
+Server = http://knoppmyth.net/repo/i686/extra
+
+
+########################ARCH DEFAULTS#############
+#[core]
+# Add your preferred servers here, they will be used first
+#Include = /etc/pacman.d/mirrorlist
+
+#[extra]
+# Add your preferred servers here, they will be used first
+#Include = /etc/pacman.d/mirrorlist
+
+#[community]
+# Add your preferred servers here, they will be used first
+#Include = /etc/pacman.d/mirrorlist
+
+# Unstable is disabled by default. To enable, uncomment the following
+# two lines. You can add preferred servers immediately after the header,
+# and they will be used before the default mirrors.
+#[unstable]
+#Include = /etc/pacman.d/mirrorlist
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post-process.sh b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post-process.sh
new file mode 100755
index 0000000..131b907
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post-process.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+echo $@
+INSTDIR=$1
+PROFILE=$2
+
+#everything below this point is specific to MythVantage
+cp -rp $PROFILE/post_process $INSTDIR/.tweak
+chroot $INSTDIR .tweak/tweak.sh
+rm -rf $INSTDIR/.tweak
+
+#find the size of the install.
+#This is used to calculate progress on the install
+tsize=`du -sm $INSTDIR/ | cut -f1`
+echo "TOTALSIZE=$tsize" > $INSTDIR/root/.install_size
+upsize=`du -sm --exclude data $INSTDIR/ |cut -f1`
+echo "UPGRADESIZE=$upsize" >> $INSTDIR/root/.install_size
+
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.bash_profile b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.bash_profile
new file mode 100644
index 0000000..c49349b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.bash_profile
@@ -0,0 +1 @@
+. $HOME/.bashrc
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.bashrc b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.bashrc
new file mode 100644
index 0000000..fcabce0
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.bashrc
@@ -0,0 +1,3 @@
+alias ls='ls --color=auto'
+PS1='[\u@\h \W]\$ '
+
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/apps b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/apps
new file mode 100644
index 0000000..52db7fe
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/apps
@@ -0,0 +1,2 @@
+[startup] {feh --bg-scale ~/.fluxbox/wallpaper.png}
+[startup] {mythfrontend}
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/init b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/init
new file mode 100644
index 0000000..aa4040a
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/init
@@ -0,0 +1,35 @@
+session.screen0.slit.placement: BottomRight
+session.screen0.slit.direction: Vertical
+session.screen0.slit.onTop: False
+session.screen0.slit.autoHide: True
+session.screen0.tab.placement: Top
+session.screen0.toolbar.onTop: False
+session.screen0.toolbar.visible: False
+session.screen0.toolbar.autoHide: False
+session.screen0.toolbar.placement: BottomCenter
+session.screen0.toolbar.widthPercent: 66
+session.screen0.workspaceNames: one,two,three,four
+session.screen0.strftimeFormat: %k:%M
+session.screen0.focusNewWindows: True
+session.screen0.focusModel: ClickToFocus
+session.screen0.fullMaximization: False
+session.screen0.edgeSnapThreshold: 0
+session.screen0.rowPlacementDirection: LeftToRight
+session.screen0.workspaces: 4
+session.screen0.focusLastWindow: True
+session.screen0.colPlacementDirection: TopToBottom
+session.screen0.windowPlacement: RowSmartPlacement
+session.screen0.tab.width: 64
+session.screen0.tab.height: 16
+session.screen0.showwindowposition: true
+session.opaqueMove: False
+session.autoRaiseDelay: 250
+session.menuFile: ~/.fluxbox/menu
+session.cacheLife: 5
+session.styleFile: /usr/share/fluxbox/styles/bora_black
+session.keyFile: ~/.fluxbox/keys
+session.colorsPerChannel: 4
+session.doubleClickInterval: 250
+session.cacheMax: 200
+session.imageDither: True
+session.configVersion: 1
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/menu b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/menu
new file mode 100644
index 0000000..858090e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/menu
@@ -0,0 +1,81 @@
+# Generated by fluxbox-generate_menu
+#
+# If you read this it means you want to edit this file manually, so here
+# are some useful tips:
+#
+# - You can add your own menu-entries to ~/.fluxbox/usermenu
+#
+# - If you miss apps please let me know and I will add them for the next
+# release.
+#
+# - The -r option prevents removing of empty menu entries and lines which
+# makes things much more readable.
+#
+# - To prevent any other app from overwriting your menu
+# you can change the menu name in .fluxbox/init to:
+# session.menuFile: /home/mythtv/.fluxbox/my-menu
+[begin] (Fluxbox)
+[encoding] {UTF-8}
+ [exec] (xterm) {xterm}
+ [exec] () {} execname is NULL; cannot lookup
+ [exec] (Run) {fbrun }
+[submenu] (Terminals)
+ [exec] (xterm) {xterm}
+[end]
+[submenu] (Editors)
+ [exec] (xedit) {xedit}
+ [exec] (nano) {xterm -e nano}
+ [exec] (vi) {xterm -e vi}
+[end]
+[submenu] (Multimedia)
+[submenu] (Audio)
+ [exec] (alsamixer) {xterm -e alsamixer}
+[end]
+[submenu] (Video)
+ [exec] (gmplayer) {gmplayer}
+[end]
+[submenu] (X-utils)
+ [exec] (xfontsel) {xfontsel}
+ [exec] (xman) {xman}
+ [exec] (xload) {xload}
+ [exec] (xbiff) {xbiff}
+ [exec] (xclock) {xclock}
+ [exec] (xmag) {xmag}
+ [exec] (Reload .Xdefaults) {xrdb -load /home/mythtv/.Xdefaults}
+[end]
+[end]
+[submenu] (Office)
+ [exec] (xclock) {xclock}
+ [exec] (xcalc) {xcalc}
+[end]
+[submenu] (Games)
+ [exec] (xeyes) {xeyes}
+[end]
+[submenu] (System Tools)
+ [exec] (top) {xterm -e top}
+[end]
+[submenu] (fluxbox menu)
+ [config] (Configure)
+[submenu] (System Styles) {Choose a style...}
+ [stylesdir] (/usr/share/fluxbox/styles)
+[end]
+[submenu] (User Styles) {Choose a style...}
+ [stylesdir] (~/.fluxbox/styles)
+[end]
+ [workspaces] (Workspace List)
+[submenu] (Tools)
+ [exec] (Window name) {xprop WM_CLASS|cut -d \" -f 2|xmessage -file - -center}
+ [exec] (Screenshot - JPG) {import screenshot.jpg && display -resize 50% screenshot.jpg}
+ [exec] (Screenshot - PNG) {import screenshot.png && display -resize 50% screenshot.png}
+ [exec] (Run) {fbrun }
+ [exec] (Regen Menu) {/usr/bin/fluxbox-generate_menu }
+[end]
+ [commanddialog] (Fluxbox Command)
+ [reconfig] (Reload config)
+ [restart] (Restart)
+ [exec] (About) {(fluxbox -v; fluxbox -info | sed 1d) 2> /dev/null | xmessage -file - -center}
+ [separator]
+ [exit] (Exit)
+[end]
+[endencoding]
+[end]
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/menuconfig b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/menuconfig
new file mode 100644
index 0000000..ef5b398
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/menuconfig
@@ -0,0 +1,65 @@
+# This file is read by fluxbox-generate_menu. If you don't like a
+# default you can change it here. Don't forget to remove the # in front
+# of the line.
+
+# Your favourite terminal. Put the command in quotes if you want to use
+# options. Put a backslash in before odd chars
+# MY_TERM='Eterm --tint \#123456'
+# MY_TERM='aterm -tint $(random_color)'
+
+# Your favourite browser. You can also specify options.
+# MY_BROWSER=mozilla
+
+# Name of the outputfile
+# MENUFILENAME=/home/mythtv/.fluxbox/menu
+
+# MENUTITLE=`fluxbox -version|cut -d " " -f-2`
+
+# standard url for console-browsers
+# HOMEPAGE=fluxbox.org
+
+# location with your own menu-entries
+# USERMENU=~/.fluxbox/usermenu
+
+# Put the launcher you would like to use here
+# LAUNCHER=fbrun
+# LAUNCHER=fbgm
+
+# Options for fbrun
+# FBRUNOPTIONS='-font 10x20 -fg grey -bg black -title run'
+
+# --- PREFIX'es
+# These are prefixes; So if fluxbox is installed in /usr/bin/fluxbox
+# your prefix is: /usr
+
+# fluxbox-generate already looks in /usr/X11R6, /usr, /usr/local and /opt so
+# there should be no need to specify them.
+#
+# PREFIX=/usr
+# GNOME_PREFIX=/opt/gnome
+# KDE_PREFIX=/opt/kde
+
+
+# Sepparate the list of background-dirs with semicolumns ':'
+# BACKGROUND_DIRS="/home/mythtv/.fluxbox/backgrounds/:/usr/share/fluxbox/backgrounds/:/usr/share/wallpapers"
+
+
+# --- Boolean variables.
+# Setting a variable to no'' won't help. Comment them out if you don't
+# want them. Setting are overruled by the command-line options.
+
+# Include all backgrounds in your backgrounds-directory
+# BACKGROUNDMENUITEM=yes
+
+# Include kde-menus
+# KDEMENU=yes
+
+# Include gnome-menus
+# GNOMEMENU=yes
+
+# enable sudo commands
+# DOSUDO=yes
+
+# Don't cleanup the menu
+# REMOVE=no
+
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/wallpaper.png b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/wallpaper.png
new file mode 100644
index 0000000..83da80c
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.fluxbox/wallpaper.png
Binary files differ
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.xinitrc b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.xinitrc
new file mode 100755
index 0000000..911e76e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.xinitrc
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+#
+# ~/.xinitrc
+#
+# Executed by startx (run your window manager from here)
+#
+
+# exec gnome-session
+# exec startkde
+# exec startxfce4
+# exec icewm
+# exec openbox
+# exec blackbox
+exec fluxbox
+# exec ratpoison
+# exec dwm
+# ... or any other WM of your choosing ...
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.xsession b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.xsession
new file mode 100755
index 0000000..a16dc0b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/home/mythtv/.xsession
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+#
+# ~/.xsession
+#
+# Executed by xdm/gdm/kdm at login
+#
+
+/bin/bash --login -i ~/.xinitrc
+
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/hosts.allow b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/hosts.allow
new file mode 100644
index 0000000..ca19dbb
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/hosts.allow
@@ -0,0 +1,7 @@
+#
+# /etc/hosts.allow
+#
+ALL: 192.168.
+ALL: 10.
+ALL: 127.0.0.1
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/hosts.deny b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/hosts.deny
new file mode 100755
index 0000000..ca30ab4
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/hosts.deny
@@ -0,0 +1,6 @@
+#
+# /etc/hosts.deny
+#
+ALL
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/menu.lst b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/menu.lst
new file mode 100755
index 0000000..ce33757
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/menu.lst
@@ -0,0 +1,60 @@
+# Config file for GRUB - The GNU GRand Unified Bootloader
+# /boot/grub/menu.lst
+
+# DEVICE NAME CONVERSIONS
+#
+# Linux Grub
+# -------------------------
+# /dev/fd0 (fd0)
+# /dev/hda (hd0)
+# /dev/hdb2 (hd1,1)
+# /dev/hda3 (hd0,2)
+#
+
+# FRAMEBUFFER RESOLUTION SETTINGS
+# +-------------------------------------------------+
+# | 640x480 800x600 1024x768 1280x1024
+# ----+--------------------------------------------
+# 256 | 0x301=769 0x303=771 0x305=773 0x307=775
+# 32K | 0x310=784 0x313=787 0x316=790 0x319=793
+# 64K | 0x311=785 0x314=788 0x317=791 0x31A=794
+# 16M | 0x312=786 0x315=789 0x318=792 0x31B=795
+# +-------------------------------------------------+
+
+# general configuration:
+timeout 5
+default 0
+#color light-blue/black light-cyan/blue
+
+# boot sections follow
+# each is implicitly numbered from 0 in the order of appearance below
+#
+# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
+#
+#-*
+hiddenmenu
+
+# (0) normal
+title LinHes
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit console=tty1
+initrd /boot/kernel26.img
+
+# (1) bootsplash
+title LinHes-splashy
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit quiet vga=0x318 splash=silent,theme:darch console=tty1
+initrd /boot/kernel26.img
+
+# (2) noautologin
+title STB-nologin
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit quiet vga=0x318 splash=silent,theme:darch console=tty1 noautologin
+initrd /boot/kernel26.img
+
+
+# (3) normal
+title LinHes-init
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro console=tty1
+initrd /boot/kernel26.img
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/rc.conf b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/rc.conf
new file mode 100755
index 0000000..1d5b377
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/rc.conf
@@ -0,0 +1,113 @@
+#
+# /etc/rc.conf - Main Configuration for Arch Linux
+#
+
+#
+# -----------------------------------------------------------------------
+# LOCALIZATION
+# -----------------------------------------------------------------------
+#
+# LOCALE: available languages can be listed with the 'locale -a' command
+# HARDWARECLOCK: set to "UTC" or "localtime"
+# TIMEZONE: timezones are found in /usr/share/zoneinfo
+# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
+# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
+# CONSOLEMAP: found in /usr/share/kbd/consoletrans
+# USECOLOR: use ANSI color sequences in startup messages
+#
+LOCALE="en_US.utf8"
+HARDWARECLOCK="UTC"
+TIMEZONE="US/Central"
+KEYMAP="us"
+CONSOLEFONT=
+CONSOLEMAP=
+USECOLOR="no"
+
+#
+# -----------------------------------------------------------------------
+# HARDWARE
+# -----------------------------------------------------------------------
+#
+# Scan hardware and load required modules at bootup
+MOD_AUTOLOAD="yes"
+if [ -f /etc/systemconfig ]
+then
+ . /etc/systemconfig
+fi
+
+if [ x$Audiotype = xOSS -a ! -f /tmp/.alsatest ]
+then
+ ALSABLACKLIST="soundcore"
+else
+ if [ x$Audiotype = xOSS ]
+ then
+ ALSABLACKLIST="soundcore"
+ else
+ ALSABLACKLIST=""
+ fi
+fi
+
+# Module Blacklist - modules in this list will never be loaded by udev
+MOD_BLACKLIST=($ALSABLACKLIST)
+#
+# Modules to load at boot-up (in this order)
+# - prefix a module with a ! to blacklist it
+#
+MODULES=()
+# Scan for LVM volume groups at startup, required if you use LVM
+USELVM="no"
+
+#
+# -----------------------------------------------------------------------
+# NETWORKING
+# -----------------------------------------------------------------------
+#
+HOSTNAME=`cat /etc/hostname`
+
+#The following is only used on the install. After the first boot everything is set from /etc/net.
+
+
+#
+# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available
+# interfaces.
+#
+# Interfaces to start at boot-up (in this order)
+# Declare each interface then list in INTERFACES
+# - prefix an entry in INTERFACES with a ! to disable it
+# - no hyphens in your interface names - Bash doesn't like it
+#
+# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
+#
+lo="lo 127.0.0.1"
+#eth0="dhcp"
+INTERFACES=(lo )
+#
+# Routes to start at boot-up (in this order)
+# Declare each route then list in ROUTES
+# - prefix an entry in ROUTES with a ! to disable it
+#
+gateway="default gw 192.168.0.1"
+ROUTES=(!gateway)
+#
+# Enable these network profiles at boot-up. These are only useful
+# if you happen to need multiple network configurations (ie, laptop users)
+# - set to 'menu' to present a menu during boot-up (dialog package required)
+# - prefix an entry with a ! to disable it
+#
+# Network profiles are found in /etc/network-profiles
+#
+#NET_PROFILES=(main)
+
+#
+# -----------------------------------------------------------------------
+# DAEMONS
+# -----------------------------------------------------------------------
+#
+# Daemons to start at boot-up (in this order)
+# - prefix a daemon with a ! to disable it
+# - prefix a daemon with a @ to start it up in the background
+#
+#DAEMONS=(syslog-ng network netfs crond)
+DAEMONS=(!syslog-ng !hotplug !pcmcia network mysqld dbus avahi-daemon)
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/rc.shutdown b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/rc.shutdown
new file mode 100755
index 0000000..1a8cdbe
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/rc.shutdown
@@ -0,0 +1,104 @@
+#!/bin/bash
+#
+# /etc/rc.shutdown
+#
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+# avoid staircase effect
+/bin/stty onlcr
+
+echo " "
+printhl "Initiating Shutdown..."
+echo " "
+
+if [ -x /etc/rc.local.shutdown ]; then
+ /etc/rc.local.shutdown
+fi
+
+if [ "$PREVLEVEL" = "3" -o "$PREVLEVEL" = "5" ]; then
+ # Shutdown daemons
+ let i=${#DAEMONS[@]}
+ while [[ i -ge 0 ]]; do
+ if [[ `echo ${DAEMONS[$i]} | grep '^[^\!]' | wc -l` -eq 1 ]]; then
+ /etc/rc.d/${DAEMONS[$i]#@} stop
+ fi
+ let i=i-1
+ done
+ # find any leftover daemons and shut them down
+ if [ -d /var/run/daemons ]; then
+ for daemon in `ls /var/run/daemons`; do
+ /etc/rc.d/$daemon stop
+ done
+ fi
+fi
+
+# Terminate all processes
+stat_busy "Sending SIGTERM To Processes"
+/sbin/killall5 -15 &> /dev/null
+/bin/sleep 5
+stat_done
+
+stat_busy "Sending SIGKILL To Processes"
+/sbin/killall5 -9 &> /dev/null
+/bin/sleep 1
+stat_done
+
+stat_busy "Saving Random Seed"
+/bin/dd if=/dev/urandom of=/var/run/random-seed count=1 bs=512 2> /dev/null
+stat_done
+
+stat_busy "Saving System Clock"
+if [ "$HARDWARECLOCK" = "UTC" ]; then
+ /sbin/hwclock --directisa --utc --systohc
+else
+ /sbin/hwclock --directisa --localtime --systohc
+fi
+stat_done
+
+# removing psmouse module to fix some reboot issues on newer laptops
+modprobe -r psmouse >/dev/null 2>&1
+
+# Write to wtmp file before unmounting
+/sbin/halt -w
+
+stat_busy "Deactivating Swap"
+/sbin/swapoff -a
+stat_done
+
+stat_busy "Unmounting Filesystems"
+/bin/umount -a
+stat_done
+
+if [ "$USELVM" = "yes" -o "$USELVM" = "YES" ]; then
+ if [ -d /etc/lvm -a -x /sbin/lvm ]; then
+ /bin/mount -n -t sysfs none /sys 2>/dev/null
+ if [ -d /sys/block ]; then
+ stat_busy "Deactivating LVM2 groups"
+ /sbin/lvm vgchange --ignorelockingfailure -a n
+ stat_done
+ umount /sys
+ fi
+ fi
+fi
+
+stat_busy "Remounting Root Filesystem Read-only"
+/bin/mount -n -o remount,ro /
+stat_done
+exit 0
+# Power off or reboot
+if [ "$RUNLEVEL" = "0" ]; then
+ printsep
+ printhl "${C_H2}POWER OFF"
+ /sbin/poweroff -d -f -h -i
+else
+ printsep
+ printhl "${C_H2}REBOOTING"
+ # adding kexec support
+ [ -x /usr/sbin/kexec ] && /usr/sbin/kexec -e > /dev/null 2>&1
+ /sbin/reboot -d -f -i
+fi
+
+# End of file
+# vim: set ts=2 noet:
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/tweak.sh b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/tweak.sh
new file mode 100755
index 0000000..5c73cf4
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/post_process/tweak.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+useradd -m -s /bin/bash mythtv -G audio,video,optical,storage,users
+echo 'setting mythtv password to "a" '
+passwd mythtv <<EOF
+a
+a
+EOF
+
+echo 'setting root password to "a" '
+passwd root <<EOF
+a
+a
+EOF
+
+#edit /home/mythtv/.xinitrc and uncomment exec fluxbox
+cp -rvpf /.tweak/home/mythtv /home/
+
+
+
+chown -R mythtv.mythtv /home/mythtv/
+
+
+
+cp -f /.tweak/hosts.allow /etc/hosts.allow
+cp -f /.tweak/securetty /etc/securetty
+cp -f /.tweak/rc.conf /etc/rc.conf
+#cp -f rc.local /etc/rc.local
+#cp -f locale.gen /etc/locale.gen
+
+cp -f /.tweak/rc.shutdown /etc/rc.shutdown
+cp -f /.tweak/menu.lst /boot/grub/menu.lst
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/pre-process.sh b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/pre-process.sh
new file mode 100755
index 0000000..5bc1f9c
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/pre-process.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+rm -f overlay.xpk
+if [ -d overlay/home/mythtv ]
+then
+ chown -R 1000 overlay/home/mythtv
+fi
+./create_overlay.sh
+
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rcconfx b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rcconfx
new file mode 100644
index 0000000..23e671e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rcconfx
@@ -0,0 +1,19 @@
+#
+# patch file for /etc/rc.conf
+#
+
+LOCALE="en_US.utf8"
+HARDWARECLOCK="UTC"
+TIMEZONE="UTC"
+KEYMAP="us"
+
+MODULES=(floppy)
+
+HOSTNAME="larch5"
+
+USELVM="yes"
+
+#eth0="dhcp"
+
+DAEMONS=(syslog-ng network mysqld dbus hal !slim sshd)
+SPLASH="splashy"
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/X11/xinit/startx.custom b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/X11/xinit/startx.custom
new file mode 100644
index 0000000..8e3ec5e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/X11/xinit/startx.custom
@@ -0,0 +1,22 @@
+if grep -v nox /proc/cmdline &>/dev/null && \
+ [ -z "$DISPLAY" ] && echo $(tty) | grep /vc/1 &>/dev/null; then
+ if grep i810 /proc/cmdline &>/dev/null; then
+ startx -- -config xorg.conf.i810
+ else
+ startx
+ fi
+
+ # Maybe there should be some code here to handle a failed startx?
+
+ # The 'return' value is at /tmp/xlogout
+ # If there is nothing there, switch user to 'newuser'
+ # If there is also nothing there, login as root
+ # - if already root, fall through to terminal
+
+ if [ -f /tmp/xlogout ] || [ -f /tmp/newuser ]; then
+ logout
+ elif [ ${UID} -ne 0 ]; then
+ echo "root" >/tmp/newuser
+ logout
+ fi
+fi
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/X11/xinit/xinitrc.custom b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/X11/xinit/xinitrc.custom
new file mode 100644
index 0000000..5f04171
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/X11/xinit/xinitrc.custom
@@ -0,0 +1,4 @@
+# Set the keymap
+xkmap-set
+
+exec fluxbox
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf
new file mode 100644
index 0000000..6d11b2e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf
@@ -0,0 +1,49 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ Identifier "Card0"
+ Driver "vesa"
+EndSection
+
+Section "Monitor"
+ Identifier "Monitor0"
+ HorizSync 30.0 - 65.0
+ VertRefresh 50.0 - 75.0
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ DefaultDepth 16
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ Modes "1024x768" "800x600"
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf.i810 b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf.i810
new file mode 100644
index 0000000..9615569
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf.i810
@@ -0,0 +1,59 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ ### Available Driver options are:-
+ ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
+ ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
+ ### [arg]: arg optional
+ #Option "NoAccel" # [<bool>]
+ #Option "SWcursor" # [<bool>]
+ #Option "ColorKey" # <i>
+ #Option "CacheLines" # <i>
+ #Option "Dac6Bit" # [<bool>]
+ #Option "DRI" # [<bool>]
+ #Option "NoDDC" # [<bool>]
+ #Option "ShowCache" # [<bool>]
+ #Option "XvMCSurfaces" # <i>
+ #Option "PageFlip" # [<bool>]
+ Option "DRI" "False"
+ #Option "AccelMethod" "exa"
+ #Option "MigrationHeuristic" "greedy"
+ #Option "ExaNoComposite" "False"
+ Identifier "Card0"
+ Driver "intel"
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf.i810.2 b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf.i810.2
new file mode 100644
index 0000000..a295b38
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf.i810.2
@@ -0,0 +1,67 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ ### Available Driver options are:-
+ ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
+ ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
+ ### [arg]: arg optional
+ #Option "NoAccel" # [<bool>]
+ #Option "SWcursor" # [<bool>]
+ #Option "ColorKey" # <i>
+ #Option "CacheLines" # <i>
+ #Option "Dac6Bit" # [<bool>]
+ #Option "DRI" # [<bool>]
+ #Option "NoDDC" # [<bool>]
+ #Option "ShowCache" # [<bool>]
+ #Option "XvMCSurfaces" # <i>
+ #Option "PageFlip" # [<bool>]
+ Option "DRI" "False"
+ #Option "AccelMethod" "exa"
+ #Option "MigrationHeuristic" "greedy"
+ #Option "ExaNoComposite" "False"
+ Identifier "Card0"
+ Driver "intel"
+EndSection
+
+Section "Monitor"
+ Identifier "Monitor0"
+ HorizSync 30.0 - 65.0
+ VertRefresh 50.0 - 75.0
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ DefaultDepth 16
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ Modes "1024x768" "800x600"
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf.vesa b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf.vesa
new file mode 100644
index 0000000..6d11b2e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/X11/xorg.conf.vesa
@@ -0,0 +1,49 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ Identifier "Card0"
+ Driver "vesa"
+EndSection
+
+Section "Monitor"
+ Identifier "Monitor0"
+ HorizSync 30.0 - 65.0
+ VertRefresh 50.0 - 75.0
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ DefaultDepth 16
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ Modes "1024x768" "800x600"
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/conf.d/dhcpcd b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/conf.d/dhcpcd
new file mode 100644
index 0000000..ab53c30
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/conf.d/dhcpcd
@@ -0,0 +1,6 @@
+#
+# Arguments to be passed to the DHCP client daemon
+#
+
+DHCPCD_ARGS="-t 10 -h $HOSTNAME"
+
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/hosts.allow b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/hosts.allow
new file mode 100644
index 0000000..19bc4d8
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/hosts.allow
@@ -0,0 +1,13 @@
+#
+# /etc/hosts.allow
+#
+
+ALL: 127.0.0.1
+
+# To allow ssh in from anywhere
+sshd: ALL
+
+# To allow ssh in from local net (example)
+#sshd: 192.168.178.0/255.255.255.0
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/inittab b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/inittab
new file mode 100644
index 0000000..2de483f
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/inittab
@@ -0,0 +1,43 @@
+#
+# /etc/inittab
+#
+
+# Runlevels:
+# 0 Halt
+# 1(S) Single-user
+# 2 Not used
+# 3 Multi-user
+# 4 Not used
+# 5 X11
+# 6 Reboot
+
+## Only one of the following two lines can be uncommented!
+# Boot to console
+id:5:initdefault:
+# Boot to X11
+#id:5:initdefault:
+
+rc::sysinit:/etc/rc.sysinit
+rs:S1:wait:/etc/rc.single
+rm:2345:wait:/etc/rc.multi
+rh:06:wait:/etc/rc.shutdown
+su:S:wait:/sbin/sulogin -p
+
+# -8 options fixes umlauts problem on login
+c1:2345:respawn:/sbin/agetty -8 38400 vc/1 linux -n -l /etc/ulogin
+c2:2345:respawn:/sbin/agetty -8 38400 vc/2 linux
+c3:2345:respawn:/sbin/agetty -8 38400 vc/3 linux
+c4:2345:respawn:/sbin/agetty -8 38400 vc/4 linux
+c5:2345:respawn:/sbin/agetty -8 38400 vc/5 linux
+c6:2345:respawn:/sbin/agetty -8 38400 vc/6 linux
+c7:5:respawn:/usr/bin/openvt -fwc 6 -- /bin/su - mythtv -c /usr/bin/startx >& /dev/null
+
+ca::ctrlaltdel:/sbin/shutdown -t3 -r now
+
+# Example lines for starting a login manager
+#x:5:respawn:/usr/bin/xdm -nodaemon
+#x:5:respawn:/usr/sbin/gdm -nodaemon
+#x:5:respawn:/opt/kde/bin/kdm -nodaemon
+#x:5:respawn:/usr/bin/slim >& /dev/null
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/inittab.larchsave b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/inittab.larchsave
new file mode 100644
index 0000000..2de483f
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/inittab.larchsave
@@ -0,0 +1,43 @@
+#
+# /etc/inittab
+#
+
+# Runlevels:
+# 0 Halt
+# 1(S) Single-user
+# 2 Not used
+# 3 Multi-user
+# 4 Not used
+# 5 X11
+# 6 Reboot
+
+## Only one of the following two lines can be uncommented!
+# Boot to console
+id:5:initdefault:
+# Boot to X11
+#id:5:initdefault:
+
+rc::sysinit:/etc/rc.sysinit
+rs:S1:wait:/etc/rc.single
+rm:2345:wait:/etc/rc.multi
+rh:06:wait:/etc/rc.shutdown
+su:S:wait:/sbin/sulogin -p
+
+# -8 options fixes umlauts problem on login
+c1:2345:respawn:/sbin/agetty -8 38400 vc/1 linux -n -l /etc/ulogin
+c2:2345:respawn:/sbin/agetty -8 38400 vc/2 linux
+c3:2345:respawn:/sbin/agetty -8 38400 vc/3 linux
+c4:2345:respawn:/sbin/agetty -8 38400 vc/4 linux
+c5:2345:respawn:/sbin/agetty -8 38400 vc/5 linux
+c6:2345:respawn:/sbin/agetty -8 38400 vc/6 linux
+c7:5:respawn:/usr/bin/openvt -fwc 6 -- /bin/su - mythtv -c /usr/bin/startx >& /dev/null
+
+ca::ctrlaltdel:/sbin/shutdown -t3 -r now
+
+# Example lines for starting a login manager
+#x:5:respawn:/usr/bin/xdm -nodaemon
+#x:5:respawn:/usr/sbin/gdm -nodaemon
+#x:5:respawn:/opt/kde/bin/kdm -nodaemon
+#x:5:respawn:/usr/bin/slim >& /dev/null
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/larch-shutdown b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/larch-shutdown
new file mode 100644
index 0000000..d614d4b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/larch-shutdown
@@ -0,0 +1,47 @@
+# Functions used by rc.shutdown
+# Modified versions for larch live systems
+
+f_saveclock ()
+{
+ :
+}
+
+f_swapoff ()
+{
+ ############################# Include session saving functions
+ # . /opt/larch-live/session-save/shutdown2
+ # if [ -f /tmp/checkse ]; then
+ # . /tmp/checkse
+ #else
+ # checkse
+ # fi
+
+ if [ -n "${saving}" ] && ! session_save; then
+ echo
+ echo "If you know what you are doing, you may be able to recover"
+ echo "something from this unpleasant situation."
+ echo
+ echo "You may use the command line to investigate further ..."
+ echo
+ echo "When finished please enter 'exit', the shutdown process will"
+ echo "then continue."
+ sh -i
+ fi
+
+ #############################
+
+ stat_busy "Deactivating Swap"
+ /sbin/swapoff -a
+ stat_done
+}
+
+f_remountro ()
+{
+ if [ -n "${ejectdev}" ]; then
+ echo "Ejecting live CD"
+ eject ${ejectdev}
+ echo "sleeping for 6 seconds"
+ sleep 6
+
+ fi
+}
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/ppp/options b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/ppp/options
new file mode 100644
index 0000000..237c390
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/ppp/options
@@ -0,0 +1,352 @@
+# /etc/ppp/options
+#
+# Originally created by Jim Knoble <jmknoble@mercury.interpath.net>
+# Modified for Debian by alvar Bray <alvar@meiko.co.uk>
+# Modified for PPP Server setup by Christoph Lameter <clameter@debian.org>
+# Modified for ArchLinux by Manolis Tzanidakis <manolis@archlinux.org>
+#
+# To quickly see what options are active in this file, use this command:
+# egrep -v '#|^ *$' /etc/ppp/options
+
+# Specify which DNS Servers the incoming Win95 or WinNT Connection should use
+# Two Servers can be remotely configured
+# ms-dns 192.168.1.1
+# ms-dns 192.168.1.2
+
+# Specify which WINS Servers the incoming connection Win95 or WinNT should use
+# ms-wins 192.168.1.50
+# ms-wins 192.168.1.51
+
+# Run the executable or shell command specified after pppd has
+# terminated the link. This script could, for example, issue commands
+# to the modem to cause it to hang up if hardware modem control signals
+# were not available.
+#disconnect "chat -- \d+++\d\c OK ath0 OK"
+
+# async character map -- 32-bit hex; each bit is a character
+# that needs to be escaped for pppd to receive it. 0x00000001
+# represents '\x01', and 0x80000000 represents '\x1f'.
+asyncmap 0
+
+# Require the peer to authenticate itself before allowing network
+# packets to be sent or received.
+# Please do not disable this setting. It is expected to be standard in
+# future releases of pppd. Use the call option (see manpage) to disable
+# authentication for specific peers.
+#auth
+
+# Use hardware flow control (i.e. RTS/CTS) to control the flow of data
+# on the serial port.
+crtscts
+
+# Use software flow control (i.e. XON/XOFF) to control the flow of data
+# on the serial port.
+#xonxoff
+
+# Specifies that certain characters should be escaped on transmission
+# (regardless of whether the peer requests them to be escaped with its
+# async control character map). The characters to be escaped are
+# specified as a list of hex numbers separated by commas. Note that
+# almost any character can be specified for the escape option, unlike
+# the asyncmap option which only allows control characters to be
+# specified. The characters which may not be escaped are those with hex
+# values 0x20 - 0x3f or 0x5e.
+#escape 11,13,ff
+
+# Don't use the modem control lines.
+#local
+
+# Specifies that pppd should use a UUCP-style lock on the serial device
+# to ensure exclusive access to the device.
+lock
+
+# Don't show the passwords when logging the contents of PAP packets.
+# This is the default.
+hide-password
+
+# When logging the contents of PAP packets, this option causes pppd to
+# show the password string in the log message.
+#show-password
+
+# Use the modem control lines. On Ultrix, this option implies hardware
+# flow control, as for the crtscts option. (This option is not fully
+# implemented.)
+modem
+
+# Set the MRU [Maximum Receive Unit] value to <n> for negotiation. pppd
+# will ask the peer to send packets of no more than <n> bytes. The
+# minimum MRU value is 128. The default MRU value is 1500. A value of
+# 296 is recommended for slow links (40 bytes for TCP/IP header + 256
+# bytes of data).
+#mru 542
+
+# Set the interface netmask to <n>, a 32 bit netmask in "decimal dot"
+# notation (e.g. 255.255.255.0).
+#netmask 255.255.255.0
+
+# Disables the default behaviour when no local IP address is specified,
+# which is to determine (if possible) the local IP address from the
+# hostname. With this option, the peer will have to supply the local IP
+# address during IPCP negotiation (unless it specified explicitly on the
+# command line or in an options file).
+#noipdefault
+
+# Enables the "passive" option in the LCP. With this option, pppd will
+# attempt to initiate a connection; if no reply is received from the
+# peer, pppd will then just wait passively for a valid LCP packet from
+# the peer (instead of exiting, as it does without this option).
+#passive
+
+# With this option, pppd will not transmit LCP packets to initiate a
+# connection until a valid LCP packet is received from the peer (as for
+# the "passive" option with old versions of pppd).
+#silent
+
+# Don't request or allow negotiation of any options for LCP and IPCP
+# (use default values).
+#-all
+
+# Disable Address/Control compression negotiation (use default, i.e.
+# address/control field disabled).
+#-ac
+
+# Disable asyncmap negotiation (use the default asyncmap, i.e. escape
+# all control characters).
+#-am
+
+# Don't fork to become a background process (otherwise pppd will do so
+# if a serial device is specified).
+#-detach
+
+# Disable IP address negotiation (with this option, the remote IP
+# address must be specified with an option on the command line or in
+# an options file).
+#-ip
+
+# Disable IPCP negotiation and IP communication. This option should
+# only be required if the peer is buggy and gets confused by requests
+# from pppd for IPCP negotiation.
+#noip
+
+# Disable magic number negotiation. With this option, pppd cannot
+# detect a looped-back line.
+#-mn
+
+# Disable MRU [Maximum Receive Unit] negotiation (use default, i.e.
+# 1500).
+#-mru
+
+# Disable protocol field compression negotiation (use default, i.e.
+# protocol field compression disabled).
+#-pc
+
+# Require the peer to authenticate itself using PAP.
+#+pap
+
+# Don't agree to authenticate using PAP.
+#-pap
+
+# Require the peer to authenticate itself using CHAP [Cryptographic
+# Handshake Authentication Protocol] authentication.
+#+chap
+
+# Don't agree to authenticate using CHAP.
+#-chap
+
+# Disable negotiation of Van Jacobson style IP header compression (use
+# default, i.e. no compression).
+#-vj
+
+# Increase debugging level (same as -d). If this option is given, pppd
+# will log the contents of all control packets sent or received in a
+# readable form. The packets are logged through syslog with facility
+# daemon and level debug. This information can be directed to a file by
+# setting up /etc/syslog.conf appropriately (see syslog.conf(5)). (If
+# pppd is compiled with extra debugging enabled, it will log messages
+# using facility local2 instead of daemon).
+#debug
+
+# Append the domain name <d> to the local host name for authentication
+# purposes. For example, if gethostname() returns the name porsche,
+# but the fully qualified domain name is porsche.Quotron.COM, you would
+# use the domain option to set the domain name to Quotron.COM.
+#domain <d>
+
+# Enable debugging code in the kernel-level PPP driver. The argument n
+# is a number which is the sum of the following values: 1 to enable
+# general debug messages, 2 to request that the contents of received
+# packets be printed, and 4 to request that the contents of transmitted
+# packets be printed.
+#kdebug n
+
+# Set the MTU [Maximum Transmit Unit] value to <n>. Unless the peer
+# requests a smaller value via MRU negotiation, pppd will request that
+# the kernel networking code send data packets of no more than n bytes
+# through the PPP network interface.
+#mtu <n>
+
+# Set the name of the local system for authentication purposes to <n>.
+# This is a privileged option. With this option, pppd will use lines in the
+# secrets files which have <n> as the second field when looking for a
+# secret to use in authenticating the peer. In addition, unless overridden
+# with the user option, <n> will be used as the name to send to the peer
+# when authenticating the local system to the peer. (Note that pppd does
+# not append the domain name to <n>.)
+#name <n>
+
+# Enforce the use of the hostname as the name of the local system for
+# authentication purposes (overrides the name option).
+#usehostname
+
+# Set the assumed name of the remote system for authentication purposes
+# to <n>.
+#remotename <n>
+
+# Add an entry to this system's ARP [Address Resolution Protocol]
+# table with the IP address of the peer and the Ethernet address of this
+# system.
+proxyarp
+
+# Use the system password database for authenticating the peer using
+# PAP. Note: mgetty already provides this option. If this is specified
+# then dialin from users using a script under Linux to fire up ppp wont work.
+# login
+
+# If this option is given, pppd will send an LCP echo-request frame to the
+# peer every n seconds. Normally the peer should respond to the echo-request
+# by sending an echo-reply. This option can be used with the
+# lcp-echo-failure option to detect that the peer is no longer connected.
+lcp-echo-interval 30
+
+# If this option is given, pppd will presume the peer to be dead if n
+# LCP echo-requests are sent without receiving a valid LCP echo-reply.
+# If this happens, pppd will terminate the connection. Use of this
+# option requires a non-zero value for the lcp-echo-interval parameter.
+# This option can be used to enable pppd to terminate after the physical
+# connection has been broken (e.g., the modem has hung up) in
+# situations where no hardware modem control lines are available.
+lcp-echo-failure 4
+
+# Set the LCP restart interval (retransmission timeout) to <n> seconds
+# (default 3).
+#lcp-restart <n>
+
+# Set the maximum number of LCP terminate-request transmissions to <n>
+# (default 3).
+#lcp-max-terminate <n>
+
+# Set the maximum number of LCP configure-request transmissions to <n>
+# (default 10).
+#lcp-max-configure <n>
+
+# Set the maximum number of LCP configure-NAKs returned before starting
+# to send configure-Rejects instead to <n> (default 10).
+#lcp-max-failure <n>
+
+# Set the IPCP restart interval (retransmission timeout) to <n>
+# seconds (default 3).
+#ipcp-restart <n>
+
+# Set the maximum number of IPCP terminate-request transmissions to <n>
+# (default 3).
+#ipcp-max-terminate <n>
+
+# Set the maximum number of IPCP configure-request transmissions to <n>
+# (default 10).
+#ipcp-max-configure <n>
+
+# Set the maximum number of IPCP configure-NAKs returned before starting
+# to send configure-Rejects instead to <n> (default 10).
+#ipcp-max-failure <n>
+
+# Set the PAP restart interval (retransmission timeout) to <n> seconds
+# (default 3).
+#pap-restart <n>
+
+# Set the maximum number of PAP authenticate-request transmissions to
+# <n> (default 10).
+#pap-max-authreq <n>
+
+# Set the maximum time that pppd will wait for the peer to authenticate
+# itself with PAP to <n> seconds (0 means no limit).
+#pap-timeout <n>
+
+# Set the CHAP restart interval (retransmission timeout for
+# challenges) to <n> seconds (default 3).
+#chap-restart <n>
+
+# Set the maximum number of CHAP challenge transmissions to <n>
+# (default 10).
+#chap-max-challenge
+
+# If this option is given, pppd will rechallenge the peer every <n>
+# seconds.
+#chap-interval <n>
+
+# With this option, pppd will accept the peer's idea of our local IP
+# address, even if the local IP address was specified in an option.
+#ipcp-accept-local
+
+# With this option, pppd will accept the peer's idea of its (remote) IP
+# address, even if the remote IP address was specified in an option.
+#ipcp-accept-remote
+
+# Disable the IPXCP and IPX protocols.
+# To let pppd pass IPX packets comment this out --- you'll probably also
+# want to install ipxripd, and have the Internal IPX Network option enabled
+# in your kernel. /usr/doc/HOWTO/IPX-HOWTO.gz contains more info.
+noipx
+
+# Exit once a connection has been made and terminated. This is the default,
+# unless the `persist' or `demand' option has been specified.
+#nopersist
+
+# Do not exit after a connection is terminated; instead try to reopen
+# the connection.
+#persist
+
+# Terminate after n consecutive failed connection attempts.
+# A value of 0 means no limit. The default value is 10.
+#maxfail <n>
+
+# Initiate the link only on demand, i.e. when data traffic is present.
+# With this option, the remote IP address must be specified by the user on
+# the command line or in an options file. Pppd will initially configure
+# the interface and enable it for IP traffic without connecting to the peer.
+# When traffic is available, pppd will connect to the peer and perform
+# negotiation, authentication, etc. When this is completed, pppd will
+# commence passing data packets (i.e., IP packets) across the link.
+#demand
+
+# Specifies that pppd should disconnect if the link is idle for <n> seconds.
+# The link is idle when no data packets (i.e. IP packets) are being sent or
+# received. Note: it is not advisable to use this option with the persist
+# option without the demand option. If the active-filter option is given,
+# data packets which are rejected by the specified activity filter also
+# count as the link being idle.
+#idle <n>
+
+# Specifies how many seconds to wait before re-initiating the link after
+# it terminates. This option only has any effect if the persist or demand
+# option is used. The holdoff period is not applied if the link was
+# terminated because it was idle.
+#holdoff <n>
+
+# Wait for up n milliseconds after the connect script finishes for a valid
+# PPP packet from the peer. At the end of this time, or when a valid PPP
+# packet is received from the peer, pppd will commence negotiation by
+# sending its first LCP packet. The default value is 1000 (1 second).
+# This wait period only applies if the connect or pty option is used.
+#connect-delay <n>
+
+# Packet filtering: for more information, see pppd(8)
+# Any packets matching the filter expression will be interpreted as link
+# activity, and will cause a "demand" connection to be activated, and reset
+# the idle connection timer. (idle option)
+# The filter expression is akin to that of tcpdump(1)
+#active-filter <filter-expression>
+
+# uncomment the line below this if you use PPPoE
+#plugin /usr/lib/pppd/plugins/pppoe.so
+
+# ---<End of File>---
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/rc.local b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/rc.local
new file mode 100755
index 0000000..216ec8e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/rc.local
@@ -0,0 +1,16 @@
+#!/bin/bash
+#
+# /etc/rc.local: Local multi-user startup script.
+#
+
+#install initial database
+pacman -S --noconfirm mythdb-initial 2>/dev/null
+
+# Set up automatically logged in user (larch live system only)
+if [ -f /.livesys/autologin ]; then
+ cp /.livesys/autologin /tmp/newuser
+fi
+
+# Restore saved sound volume, etc.
+#alsactl restore
+#install initial database
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/rc.local.orig b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/rc.local.orig
new file mode 100755
index 0000000..47b24ef
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/rc.local.orig
@@ -0,0 +1,7 @@
+#!/bin/bash
+#
+# /etc/rc.local: Local multi-user startup script.
+#
+
+# Restore saved sound volume, etc.
+alsactl restore
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/rc.local.shutdown b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/rc.local.shutdown
new file mode 100755
index 0000000..2b5f735
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/rc.local.shutdown
@@ -0,0 +1,7 @@
+#!/bin/bash
+#
+# /etc/rc.local.shutdown: Local shutdown script.
+#
+
+# Save sound volume, etc.
+alsactl store
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/skel/.bash_profile b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/skel/.bash_profile
new file mode 100644
index 0000000..600bd9b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/skel/.bash_profile
@@ -0,0 +1,3 @@
+. $HOME/.bashrc
+
+. /etc/X11/xinit/startx.custom
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/skel/.bashrc b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/skel/.bashrc
new file mode 100644
index 0000000..fcabce0
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/skel/.bashrc
@@ -0,0 +1,3 @@
+alias ls='ls --color=auto'
+PS1='[\u@\h \W]\$ '
+
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/skel/.xinitrc b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/skel/.xinitrc
new file mode 100644
index 0000000..c6febe5
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/skel/.xinitrc
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+#
+# ~/.xinitrc
+#
+# Executed by startx (run your window manager from here)
+#
+
+# exec gnome-session
+# exec startkde
+# exec startxfce4
+# exec icewm
+# exec openbox
+# exec blackbox
+exec fluxbox
+# exec ratpoison
+# exec dwm
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/skel/.xsession b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/skel/.xsession
new file mode 100755
index 0000000..a16dc0b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/skel/.xsession
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+#
+# ~/.xsession
+#
+# Executed by xdm/gdm/kdm at login
+#
+
+/bin/bash --login -i ~/.xinitrc
+
diff --git a/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/slim.conf b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/slim.conf
new file mode 100644
index 0000000..35ed579
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-RELEASE-REMOTE/rootoverlay/etc/slim.conf
@@ -0,0 +1,79 @@
+# Path, X server and arguments (if needed)
+# Note: -xauth $authfile is automatically appended
+default_path ./:/bin:/usr/bin:/usr/local/bin:/usr/bin
+default_xserver /usr/bin/X
+xserver_arguments -nolisten tcp vt07
+
+# Commands for halt, login, etc.
+halt_cmd /sbin/shutdown -h now
+reboot_cmd /sbin/shutdown -r now
+console_cmd /usr/bin/terminal -x /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
+#suspend_cmd /usr/sbin/suspend
+
+# Full path to the xauth binary
+xauth_path /usr/bin/xauth
+
+# Xauth file for server
+authfile /var/run/slim.auth
+
+
+# Activate numlock when slim starts. Valid values: on|off
+# numlock on
+
+# Hide the mouse cursor (note: does not work with some WMs).
+# Valid values: true|false
+# hidecursor false
+
+# This command is executed after a succesful login.
+# you can place the %session and %theme variables
+# to handle launching of specific commands in .xinitrc
+# depending of chosen session and slim theme
+#
+# NOTE: if your system does not have bash you need
+# to adjust the command according to your preferred shell,
+# i.e. for freebsd use:
+# login_cmd exec /bin/sh - ~/.xinitrc %session
+login_cmd exec /bin/bash -login ~/.xinitrc %session
+
+# Commands executed when starting and exiting a session.
+# They can be used for registering a X11 session with
+# sessreg. You can use the %user variable
+#
+# sessionstart_cmd some command
+# sessionstop_cmd some command
+
+# Start in daemon mode. Valid values: yes | no
+# Note that this can overridden by the command line
+# option "-d"
+# daemon yes
+
+# Available sessions (first one is the default).
+# The current chosen session name is replaced in the login_cmd
+# above, so your login command can handle different sessions.
+# see the xinitrc.sample file shipped with slim sources
+sessions xfce4,icewm,wmaker,blackbox
+
+# Executed when pressing F11 (requires imagemagick)
+screenshot_cmd import -window root /slim.png
+
+# welcome message. Available variables: %host, %domain
+welcome_msg Welcome to %host
+
+# shutdown / reboot messages
+shutdown_msg The system is halting...
+reboot_msg The system is rebooting...
+
+# default user, leave blank or remove this line
+# for avoid pre-loading the username.
+#default_user simone
+
+# current theme, use comma separated list to specify a set to
+# randomly choose from
+current_theme dlarch
+
+# Lock file
+lockfile /var/lock/slim.lock
+
+# Log file
+logfile /var/log/slim.log
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/addedpacks b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/addedpacks
new file mode 100644
index 0000000..6668d64
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/addedpacks
@@ -0,0 +1,170 @@
+# These are needed to build a live CD
+linhes-live
+squashfs-tools
+lzop
+
+syslinux
+
+# You need a kernel.
+#kernel26 is now in 'base'
+aufs
+
+# To eject a cd
+eject
+
+# Useful for use as installer, etc.
+#ntfsprogs
+#parted
+
+#ddcxinfo-knoppix
+#hwd
+
+sudo
+
+lsof
+cdrkit
+dvd+rw-tools
+
+# Needed by the installer
+#python
+
+#base-devel
+#larch
+
+# generally useful tools which don't require X
+#mtools is required by syslinux
+openssh
+dosfstools
+alsa-lib
+alsa-oss
+alsa-utils
+cdparanoia
+cdrdao
+
+# Xorg packages
+xorg-server
+xorg-xkb-utils
+xorg-xauth
+xorg-server-utils
+xorg-xinit
+xorg-input-drivers
+xterm
+xorg-fonts-100dpi
+xorg-fonts-75dpi
+xorg-res-utils
+
+#xorg-video-drivers
+xf86-video-amd
+xf86-video-apm
+xf86-video-ark
+xf86-video-ati
+xf86-video-chips
+xf86-video-cirrus
+xf86-video-dummy
+xf86-video-fbdev
+xf86-video-glint
+xf86-video-i128
+xf86-video-i740
+#xf86-video-i810
+xf86-video-imstt
+xf86-video-intel
+xf86-video-mga
+xf86-video-neomagic
+xf86-video-nv
+xf86-video-radeonhd
+xf86-video-rendition
+xf86-video-s3
+xf86-video-s3virge
+xf86-video-savage
+xf86-video-siliconmotion
+xf86-video-sis
+xf86-video-sisusb
+#xf86-video-tdfx
+xf86-video-trident
+xf86-video-tseng
+xf86-video-unichrome
+xf86-video-v4l
+xf86-video-vesa
+xf86-video-vga
+#xf86-video-via
+xf86-video-vmware
+xf86-video-voodoo
+
+# X apps
+#luser
+#localed
+
+#xkmap
+
+#gparted
+#larchin
+
+#mythtv
+mythtv
+mytharchive
+mythbrowser
+mythcontrols
+mythflix
+mythgallery
+mythgame
+mythmusic
+mythphone
+myththemes
+mythweather
+mythweb
+mythvideo
+nuvexport
+lirc
+lirc-utils
+mysql
+xmltv
+esd
+
+#Window Manager
+fluxbox
+feh
+
+#Other
+dbus
+hal
+fftw2
+libcdaudio
+iptables
+pkgconfig
+taglib
+
+#MythVantage Installer deps
+bc
+mysql-python
+expect
+curl
+dnsutils
+
+#Wireless
+b43-fwcutter
+ipw2100-fw
+ipw2200-fw
+ipw3945
+ipw3945-ucode
+ipw3945d
+iwlwifi-3945-ucode
+iwlwifi-4965-ucode
+madwifi
+madwifi-utils
+ndiswrapper
+ndiswrapper-utils
+netcfg
+rt2500
+rt2x00-rt61-fw
+rt2x00-rt71w-fw
+tiacx
+tiacx-firmware
+wireless_tools
+wlan-ng26
+wlan-ng26-utils
+zd1211-firmware
+
+#----
+live-installer
+etcnet
+runit
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/cache_packs b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/cache_packs
new file mode 100644
index 0000000..b95e6f4
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/cache_packs
@@ -0,0 +1 @@
+mythdb-initial
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/cd-root/isolinux/isolinux.cfg b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/cd-root/isolinux/isolinux.cfg
new file mode 100644
index 0000000..26a365a
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/cd-root/isolinux/isolinux.cfg
@@ -0,0 +1,49 @@
+default vesamenu.c32
+prompt 0
+timeout 50
+
+MENU BACKGROUND vbg.jpg
+MENU COLOR border 31;40 #90ffff00 #00000000 std
+MENU COLOR sel 31;47 #00000000 #FFFFFF15 al
+
+MENU TITLE LinHES: The Linux Home Entertainment System
+
+label linux
+MENU LABEL LinHES with Splashy (default).
+kernel vmlinuz
+append initrd=larch.img vga=791 quiet splash
+
+label linux-nosplash
+MENU LABEL LinHES without splash screen.
+kernel vmlinuz
+append initrd=larch.img
+
+label linux-splash
+MENU LABEL LinHES with splash screen.
+kernel vmlinuz
+append initrd=larch.img vga=791 quiet splash
+
+label linux-i810
+MENU LABEL with Intel i810 driver (DRI disabled)
+kernel vmlinuz
+append initrd=larch.img i810
+
+label linux-nox
+MENU LABEL Boot to console (without X windowing)
+kernel vmlinuz
+append initrd=larch.img 3
+
+label linux-c2r
+MENU LABEL LinHES: copy-to-ram (also activates swap)
+kernel vmlinuz
+append initrd=larch.img c2r
+
+label linux-swap
+MENU LABEL LinHES: Use swap
+kernel vmlinuz
+append initrd=larch.img swap
+
+
+label memtest
+MENU LABEL Memory tester
+kernel memtest
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/cd-root/isolinux/vbg.jpg b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/cd-root/isolinux/vbg.jpg
new file mode 100644
index 0000000..43fbdd2
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/cd-root/isolinux/vbg.jpg
Binary files differ
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/cd-root/larch/copy/actions.rc b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/cd-root/larch/copy/actions.rc
new file mode 100644
index 0000000..dd95b26
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/cd-root/larch/copy/actions.rc
@@ -0,0 +1,3 @@
+type=0
+orientation=1
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/cd-root/larch/copy/autologin b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/cd-root/larch/copy/autologin
new file mode 100644
index 0000000..93ca142
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/cd-root/larch/copy/autologin
@@ -0,0 +1 @@
+root \ No newline at end of file
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/cd-root/larch/copy/bash_profile b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/cd-root/larch/copy/bash_profile
new file mode 100644
index 0000000..c49349b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/cd-root/larch/copy/bash_profile
@@ -0,0 +1 @@
+. $HOME/.bashrc
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/cd-root/larch/copy/larch0 b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/cd-root/larch/copy/larch0
new file mode 100644
index 0000000..c80b7c2
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/cd-root/larch/copy/larch0
@@ -0,0 +1,63 @@
+# This is a script 'sourced' from the installation script larch-tidy.
+# Its purpose is to remove custom live-only stuff from a just-installed
+# system.
+# ${INSTALL} is the path to the installed system root directory.
+
+rm "${INSTALL}/root/Desktop/Install Arch Linux.desktop"
+
+if [ -f ${INSTALL}/etc/rc.local.orig ]; then
+ mv ${INSTALL}/etc/rc.local.orig ${INSTALL}/etc/rc.local
+fi
+if [ -f ${INSTALL}/etc/rc.local.shutdown.orig ]; then
+ mv ${INSTALL}/etc/rc.local.shutdown.orig ${INSTALL}/etc/rc.local.shutdown
+fi
+
+# slim is currently started in inittab
+#sed -i '/^DAEMONS=/ s|!slim|@slim|' ${INSTALL}/etc/rc.conf
+
+# Copy xorg.conf.i810 to target xorg.conf if necessary
+if ! [ -f /etc/X11/xorg.conf ]; then
+ if grep i810 /proc/cmdline &>/dev/null; then
+ cp /etc/X11/xorg.conf.i810 ${INSTALL}/etc/X11/xorg.conf
+ fi
+fi
+
+#***************************************************#
+# Replace uses of larchquit in xfce panels and menu.#
+#***************************************************#
+### Unfortunately this isn't very simple. If anyone has a better way of
+### providing different Quit actions in the live version and the version
+### installed to disk from it, please let me know!
+### Maybe it would be better just to provide a special live quit desktop
+### icon which can be removed on installation, like the installation icon.
+
+defaultquit='<builtin name="Quit" cmd="Quit" icon="gnome-logout"/>'
+
+replacequit ()
+{
+ for f in ${INSTALL}$1/.config/xfce4/panel/*; do
+ if grep "^Exec=larchquit" ${f}; then
+ n=$( echo ${f} | sed "s|^.*-\([0-9]\+\).*|\1|" )
+ cp /.livesys/actions.rc \
+ ${INSTALL}$1/.config/xfce4/panel/actions-${n}.rc
+ rm ${f}
+
+ sed -i "s|=\"launcher\" id=\"${n}\"|=\"actions\" id=\"${n}\"|" \
+ ${INSTALL}$1/.config/xfce4/panel/panels.xml
+ fi
+ done
+
+ if [ -f ${INSTALL}$1/.bash_profile ]; then
+ sed -i "s|<app .*cmd=\"larchquit.*/>|${defaultquit}|" \
+ ${INSTALL}$1/.config/xfce4/desktop/menu.xml
+
+ cp /.livesys/xfce4-session.rc ${INSTALL}$1/.config/xfce4-session
+ cp /.livesys/bash_profile ${INSTALL}$1/.bash_profile
+ fi
+}
+
+for hd in $( cat ${INSTALL}/etc/passwd | cut -d':' -f6 | grep '^/home/' ) \
+ /root /etc/skel; do
+ replacequit ${hd} &>/dev/null
+done
+#***************************************************#
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/create_overlay.sh b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/create_overlay.sh
new file mode 100755
index 0000000..6a4fdee
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/create_overlay.sh
@@ -0,0 +1 @@
+../../run/xpack -r overlay overlay.xpk
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/locale.gen b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/locale.gen
new file mode 100644
index 0000000..760ec23
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/locale.gen
@@ -0,0 +1,5 @@
+# locales for larch (/etc/locale.gen)
+
+en_US ISO-8859-1
+en_US.UTF-8 UTF-8
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/overlay/home/mythtv/.fluxbox/apps b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/overlay/home/mythtv/.fluxbox/apps
new file mode 100644
index 0000000..5a2b8d6
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/overlay/home/mythtv/.fluxbox/apps
@@ -0,0 +1,2 @@
+[startup] {feh --bg-scale ~/.fluxbox/wallpaper.png}
+[startup] {sudo /usr/MythVantage/bin/mythvantage}
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/overlay/home/mythtv/.xinitrc b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/overlay/home/mythtv/.xinitrc
new file mode 100755
index 0000000..d988c98
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/overlay/home/mythtv/.xinitrc
@@ -0,0 +1,19 @@
+#!/bin/sh
+. /etc/profile
+#
+# ~/.xinitrc
+#
+# Executed by startx (run your window manager from here)
+#
+
+# exec gnome-session
+# exec startkde
+# exec startxfce4
+# exec icewm
+# exec openbox
+# exec blackbox
+# exec fluxbox
+# exec ratpoison
+# exec dwm
+# ... or any other WM of your choosing ...
+exec fluxbox
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/pacman.conf b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/pacman.conf
new file mode 100755
index 0000000..a1eff65
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/pacman.conf
@@ -0,0 +1,61 @@
+#
+# /etc/pacman.conf
+# from pacman.conf MV
+# NOTE: If you find a mirror that is geographically close to you, please
+# move it to the top of the server list, so pacman will choose it
+# first.
+#
+# To re-sort your mirror lists by ping/traceroute results, use the
+# /usr/bin/sortmirrors script. It requires the "netselect" package.
+#
+
+# See the pacman manpage for option directives
+
+#
+# GENERAL OPTIONS
+#
+[options]
+LogFile = /var/log/pacman.log
+NoUpgrade = etc/passwd etc/group etc/shadow etc/sudoers
+NoUpgrade = etc/fstab etc/raidtab etc/ld.so.conf
+NoUpgrade = etc/rc.conf etc/rc.local
+NoUpgrade = etc/modprobe.conf etc/modules.conf
+NoUpgrade = etc/lilo.conf boot/grub/menu.lst
+NoUpgrade = data/srv/hobbit/etc/bb-hosts
+NoUpgrade = etc/func/minion.conf
+
+HoldPkg = pacman glibc
+CacheDir = /data/var/cache/pacman/pkg
+#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
+
+#
+# REPOSITORIES
+# - can be defined here or included from another file
+# - pacman will search repositories in the order defined here.
+# - local/custom mirrors can be added here or in separate files
+#
+[core-testing]
+Server = http://knoppmyth.net/repo/i686/core-testing
+
+[extra-testing]
+Server = http://knoppmyth.net/repo/i686/extra-testing
+
+
+########################ARCH DEFAULTS#############
+#[core]
+# Add your preferred servers here, they will be used first
+#Include = /etc/pacman.d/mirrorlist
+
+#[extra]
+# Add your preferred servers here, they will be used first
+#Include = /etc/pacman.d/mirrorlist
+
+#[community]
+# Add your preferred servers here, they will be used first
+#Include = /etc/pacman.d/mirrorlist
+
+# Unstable is disabled by default. To enable, uncomment the following
+# two lines. You can add preferred servers immediately after the header,
+# and they will be used before the default mirrors.
+#[unstable]
+#Include = /etc/pacman.d/mirrorlist
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post-process.sh b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post-process.sh
new file mode 100755
index 0000000..131b907
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post-process.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+echo $@
+INSTDIR=$1
+PROFILE=$2
+
+#everything below this point is specific to MythVantage
+cp -rp $PROFILE/post_process $INSTDIR/.tweak
+chroot $INSTDIR .tweak/tweak.sh
+rm -rf $INSTDIR/.tweak
+
+#find the size of the install.
+#This is used to calculate progress on the install
+tsize=`du -sm $INSTDIR/ | cut -f1`
+echo "TOTALSIZE=$tsize" > $INSTDIR/root/.install_size
+upsize=`du -sm --exclude data $INSTDIR/ |cut -f1`
+echo "UPGRADESIZE=$upsize" >> $INSTDIR/root/.install_size
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.bash_profile b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.bash_profile
new file mode 100644
index 0000000..c49349b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.bash_profile
@@ -0,0 +1 @@
+. $HOME/.bashrc
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.bashrc b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.bashrc
new file mode 100644
index 0000000..fcabce0
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.bashrc
@@ -0,0 +1,3 @@
+alias ls='ls --color=auto'
+PS1='[\u@\h \W]\$ '
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.fluxbox/apps b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.fluxbox/apps
new file mode 100644
index 0000000..52db7fe
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.fluxbox/apps
@@ -0,0 +1,2 @@
+[startup] {feh --bg-scale ~/.fluxbox/wallpaper.png}
+[startup] {mythfrontend}
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.fluxbox/init b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.fluxbox/init
new file mode 100644
index 0000000..aa4040a
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.fluxbox/init
@@ -0,0 +1,35 @@
+session.screen0.slit.placement: BottomRight
+session.screen0.slit.direction: Vertical
+session.screen0.slit.onTop: False
+session.screen0.slit.autoHide: True
+session.screen0.tab.placement: Top
+session.screen0.toolbar.onTop: False
+session.screen0.toolbar.visible: False
+session.screen0.toolbar.autoHide: False
+session.screen0.toolbar.placement: BottomCenter
+session.screen0.toolbar.widthPercent: 66
+session.screen0.workspaceNames: one,two,three,four
+session.screen0.strftimeFormat: %k:%M
+session.screen0.focusNewWindows: True
+session.screen0.focusModel: ClickToFocus
+session.screen0.fullMaximization: False
+session.screen0.edgeSnapThreshold: 0
+session.screen0.rowPlacementDirection: LeftToRight
+session.screen0.workspaces: 4
+session.screen0.focusLastWindow: True
+session.screen0.colPlacementDirection: TopToBottom
+session.screen0.windowPlacement: RowSmartPlacement
+session.screen0.tab.width: 64
+session.screen0.tab.height: 16
+session.screen0.showwindowposition: true
+session.opaqueMove: False
+session.autoRaiseDelay: 250
+session.menuFile: ~/.fluxbox/menu
+session.cacheLife: 5
+session.styleFile: /usr/share/fluxbox/styles/bora_black
+session.keyFile: ~/.fluxbox/keys
+session.colorsPerChannel: 4
+session.doubleClickInterval: 250
+session.cacheMax: 200
+session.imageDither: True
+session.configVersion: 1
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.fluxbox/menu b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.fluxbox/menu
new file mode 100644
index 0000000..858090e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.fluxbox/menu
@@ -0,0 +1,81 @@
+# Generated by fluxbox-generate_menu
+#
+# If you read this it means you want to edit this file manually, so here
+# are some useful tips:
+#
+# - You can add your own menu-entries to ~/.fluxbox/usermenu
+#
+# - If you miss apps please let me know and I will add them for the next
+# release.
+#
+# - The -r option prevents removing of empty menu entries and lines which
+# makes things much more readable.
+#
+# - To prevent any other app from overwriting your menu
+# you can change the menu name in .fluxbox/init to:
+# session.menuFile: /home/mythtv/.fluxbox/my-menu
+[begin] (Fluxbox)
+[encoding] {UTF-8}
+ [exec] (xterm) {xterm}
+ [exec] () {} execname is NULL; cannot lookup
+ [exec] (Run) {fbrun }
+[submenu] (Terminals)
+ [exec] (xterm) {xterm}
+[end]
+[submenu] (Editors)
+ [exec] (xedit) {xedit}
+ [exec] (nano) {xterm -e nano}
+ [exec] (vi) {xterm -e vi}
+[end]
+[submenu] (Multimedia)
+[submenu] (Audio)
+ [exec] (alsamixer) {xterm -e alsamixer}
+[end]
+[submenu] (Video)
+ [exec] (gmplayer) {gmplayer}
+[end]
+[submenu] (X-utils)
+ [exec] (xfontsel) {xfontsel}
+ [exec] (xman) {xman}
+ [exec] (xload) {xload}
+ [exec] (xbiff) {xbiff}
+ [exec] (xclock) {xclock}
+ [exec] (xmag) {xmag}
+ [exec] (Reload .Xdefaults) {xrdb -load /home/mythtv/.Xdefaults}
+[end]
+[end]
+[submenu] (Office)
+ [exec] (xclock) {xclock}
+ [exec] (xcalc) {xcalc}
+[end]
+[submenu] (Games)
+ [exec] (xeyes) {xeyes}
+[end]
+[submenu] (System Tools)
+ [exec] (top) {xterm -e top}
+[end]
+[submenu] (fluxbox menu)
+ [config] (Configure)
+[submenu] (System Styles) {Choose a style...}
+ [stylesdir] (/usr/share/fluxbox/styles)
+[end]
+[submenu] (User Styles) {Choose a style...}
+ [stylesdir] (~/.fluxbox/styles)
+[end]
+ [workspaces] (Workspace List)
+[submenu] (Tools)
+ [exec] (Window name) {xprop WM_CLASS|cut -d \" -f 2|xmessage -file - -center}
+ [exec] (Screenshot - JPG) {import screenshot.jpg && display -resize 50% screenshot.jpg}
+ [exec] (Screenshot - PNG) {import screenshot.png && display -resize 50% screenshot.png}
+ [exec] (Run) {fbrun }
+ [exec] (Regen Menu) {/usr/bin/fluxbox-generate_menu }
+[end]
+ [commanddialog] (Fluxbox Command)
+ [reconfig] (Reload config)
+ [restart] (Restart)
+ [exec] (About) {(fluxbox -v; fluxbox -info | sed 1d) 2> /dev/null | xmessage -file - -center}
+ [separator]
+ [exit] (Exit)
+[end]
+[endencoding]
+[end]
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.fluxbox/menuconfig b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.fluxbox/menuconfig
new file mode 100644
index 0000000..ef5b398
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.fluxbox/menuconfig
@@ -0,0 +1,65 @@
+# This file is read by fluxbox-generate_menu. If you don't like a
+# default you can change it here. Don't forget to remove the # in front
+# of the line.
+
+# Your favourite terminal. Put the command in quotes if you want to use
+# options. Put a backslash in before odd chars
+# MY_TERM='Eterm --tint \#123456'
+# MY_TERM='aterm -tint $(random_color)'
+
+# Your favourite browser. You can also specify options.
+# MY_BROWSER=mozilla
+
+# Name of the outputfile
+# MENUFILENAME=/home/mythtv/.fluxbox/menu
+
+# MENUTITLE=`fluxbox -version|cut -d " " -f-2`
+
+# standard url for console-browsers
+# HOMEPAGE=fluxbox.org
+
+# location with your own menu-entries
+# USERMENU=~/.fluxbox/usermenu
+
+# Put the launcher you would like to use here
+# LAUNCHER=fbrun
+# LAUNCHER=fbgm
+
+# Options for fbrun
+# FBRUNOPTIONS='-font 10x20 -fg grey -bg black -title run'
+
+# --- PREFIX'es
+# These are prefixes; So if fluxbox is installed in /usr/bin/fluxbox
+# your prefix is: /usr
+
+# fluxbox-generate already looks in /usr/X11R6, /usr, /usr/local and /opt so
+# there should be no need to specify them.
+#
+# PREFIX=/usr
+# GNOME_PREFIX=/opt/gnome
+# KDE_PREFIX=/opt/kde
+
+
+# Sepparate the list of background-dirs with semicolumns ':'
+# BACKGROUND_DIRS="/home/mythtv/.fluxbox/backgrounds/:/usr/share/fluxbox/backgrounds/:/usr/share/wallpapers"
+
+
+# --- Boolean variables.
+# Setting a variable to no'' won't help. Comment them out if you don't
+# want them. Setting are overruled by the command-line options.
+
+# Include all backgrounds in your backgrounds-directory
+# BACKGROUNDMENUITEM=yes
+
+# Include kde-menus
+# KDEMENU=yes
+
+# Include gnome-menus
+# GNOMEMENU=yes
+
+# enable sudo commands
+# DOSUDO=yes
+
+# Don't cleanup the menu
+# REMOVE=no
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.fluxbox/wallpaper.png b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.fluxbox/wallpaper.png
new file mode 100644
index 0000000..83da80c
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.fluxbox/wallpaper.png
Binary files differ
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.xinitrc b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.xinitrc
new file mode 100755
index 0000000..911e76e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.xinitrc
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+#
+# ~/.xinitrc
+#
+# Executed by startx (run your window manager from here)
+#
+
+# exec gnome-session
+# exec startkde
+# exec startxfce4
+# exec icewm
+# exec openbox
+# exec blackbox
+exec fluxbox
+# exec ratpoison
+# exec dwm
+# ... or any other WM of your choosing ...
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.xsession b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.xsession
new file mode 100755
index 0000000..a16dc0b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/home/mythtv/.xsession
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+#
+# ~/.xsession
+#
+# Executed by xdm/gdm/kdm at login
+#
+
+/bin/bash --login -i ~/.xinitrc
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/hosts.allow b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/hosts.allow
new file mode 100644
index 0000000..ca19dbb
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/hosts.allow
@@ -0,0 +1,7 @@
+#
+# /etc/hosts.allow
+#
+ALL: 192.168.
+ALL: 10.
+ALL: 127.0.0.1
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/hosts.deny b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/hosts.deny
new file mode 100755
index 0000000..ca30ab4
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/hosts.deny
@@ -0,0 +1,6 @@
+#
+# /etc/hosts.deny
+#
+ALL
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/menu.lst b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/menu.lst
new file mode 100755
index 0000000..ce33757
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/menu.lst
@@ -0,0 +1,60 @@
+# Config file for GRUB - The GNU GRand Unified Bootloader
+# /boot/grub/menu.lst
+
+# DEVICE NAME CONVERSIONS
+#
+# Linux Grub
+# -------------------------
+# /dev/fd0 (fd0)
+# /dev/hda (hd0)
+# /dev/hdb2 (hd1,1)
+# /dev/hda3 (hd0,2)
+#
+
+# FRAMEBUFFER RESOLUTION SETTINGS
+# +-------------------------------------------------+
+# | 640x480 800x600 1024x768 1280x1024
+# ----+--------------------------------------------
+# 256 | 0x301=769 0x303=771 0x305=773 0x307=775
+# 32K | 0x310=784 0x313=787 0x316=790 0x319=793
+# 64K | 0x311=785 0x314=788 0x317=791 0x31A=794
+# 16M | 0x312=786 0x315=789 0x318=792 0x31B=795
+# +-------------------------------------------------+
+
+# general configuration:
+timeout 5
+default 0
+#color light-blue/black light-cyan/blue
+
+# boot sections follow
+# each is implicitly numbered from 0 in the order of appearance below
+#
+# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
+#
+#-*
+hiddenmenu
+
+# (0) normal
+title LinHes
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit console=tty1
+initrd /boot/kernel26.img
+
+# (1) bootsplash
+title LinHes-splashy
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit quiet vga=0x318 splash=silent,theme:darch console=tty1
+initrd /boot/kernel26.img
+
+# (2) noautologin
+title STB-nologin
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit quiet vga=0x318 splash=silent,theme:darch console=tty1 noautologin
+initrd /boot/kernel26.img
+
+
+# (3) normal
+title LinHes-init
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro console=tty1
+initrd /boot/kernel26.img
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/rc.conf b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/rc.conf
new file mode 100755
index 0000000..1d5b377
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/rc.conf
@@ -0,0 +1,113 @@
+#
+# /etc/rc.conf - Main Configuration for Arch Linux
+#
+
+#
+# -----------------------------------------------------------------------
+# LOCALIZATION
+# -----------------------------------------------------------------------
+#
+# LOCALE: available languages can be listed with the 'locale -a' command
+# HARDWARECLOCK: set to "UTC" or "localtime"
+# TIMEZONE: timezones are found in /usr/share/zoneinfo
+# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
+# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
+# CONSOLEMAP: found in /usr/share/kbd/consoletrans
+# USECOLOR: use ANSI color sequences in startup messages
+#
+LOCALE="en_US.utf8"
+HARDWARECLOCK="UTC"
+TIMEZONE="US/Central"
+KEYMAP="us"
+CONSOLEFONT=
+CONSOLEMAP=
+USECOLOR="no"
+
+#
+# -----------------------------------------------------------------------
+# HARDWARE
+# -----------------------------------------------------------------------
+#
+# Scan hardware and load required modules at bootup
+MOD_AUTOLOAD="yes"
+if [ -f /etc/systemconfig ]
+then
+ . /etc/systemconfig
+fi
+
+if [ x$Audiotype = xOSS -a ! -f /tmp/.alsatest ]
+then
+ ALSABLACKLIST="soundcore"
+else
+ if [ x$Audiotype = xOSS ]
+ then
+ ALSABLACKLIST="soundcore"
+ else
+ ALSABLACKLIST=""
+ fi
+fi
+
+# Module Blacklist - modules in this list will never be loaded by udev
+MOD_BLACKLIST=($ALSABLACKLIST)
+#
+# Modules to load at boot-up (in this order)
+# - prefix a module with a ! to blacklist it
+#
+MODULES=()
+# Scan for LVM volume groups at startup, required if you use LVM
+USELVM="no"
+
+#
+# -----------------------------------------------------------------------
+# NETWORKING
+# -----------------------------------------------------------------------
+#
+HOSTNAME=`cat /etc/hostname`
+
+#The following is only used on the install. After the first boot everything is set from /etc/net.
+
+
+#
+# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available
+# interfaces.
+#
+# Interfaces to start at boot-up (in this order)
+# Declare each interface then list in INTERFACES
+# - prefix an entry in INTERFACES with a ! to disable it
+# - no hyphens in your interface names - Bash doesn't like it
+#
+# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
+#
+lo="lo 127.0.0.1"
+#eth0="dhcp"
+INTERFACES=(lo )
+#
+# Routes to start at boot-up (in this order)
+# Declare each route then list in ROUTES
+# - prefix an entry in ROUTES with a ! to disable it
+#
+gateway="default gw 192.168.0.1"
+ROUTES=(!gateway)
+#
+# Enable these network profiles at boot-up. These are only useful
+# if you happen to need multiple network configurations (ie, laptop users)
+# - set to 'menu' to present a menu during boot-up (dialog package required)
+# - prefix an entry with a ! to disable it
+#
+# Network profiles are found in /etc/network-profiles
+#
+#NET_PROFILES=(main)
+
+#
+# -----------------------------------------------------------------------
+# DAEMONS
+# -----------------------------------------------------------------------
+#
+# Daemons to start at boot-up (in this order)
+# - prefix a daemon with a ! to disable it
+# - prefix a daemon with a @ to start it up in the background
+#
+#DAEMONS=(syslog-ng network netfs crond)
+DAEMONS=(!syslog-ng !hotplug !pcmcia network mysqld dbus avahi-daemon)
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/rc.shutdown b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/rc.shutdown
new file mode 100755
index 0000000..1a8cdbe
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/rc.shutdown
@@ -0,0 +1,104 @@
+#!/bin/bash
+#
+# /etc/rc.shutdown
+#
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+# avoid staircase effect
+/bin/stty onlcr
+
+echo " "
+printhl "Initiating Shutdown..."
+echo " "
+
+if [ -x /etc/rc.local.shutdown ]; then
+ /etc/rc.local.shutdown
+fi
+
+if [ "$PREVLEVEL" = "3" -o "$PREVLEVEL" = "5" ]; then
+ # Shutdown daemons
+ let i=${#DAEMONS[@]}
+ while [[ i -ge 0 ]]; do
+ if [[ `echo ${DAEMONS[$i]} | grep '^[^\!]' | wc -l` -eq 1 ]]; then
+ /etc/rc.d/${DAEMONS[$i]#@} stop
+ fi
+ let i=i-1
+ done
+ # find any leftover daemons and shut them down
+ if [ -d /var/run/daemons ]; then
+ for daemon in `ls /var/run/daemons`; do
+ /etc/rc.d/$daemon stop
+ done
+ fi
+fi
+
+# Terminate all processes
+stat_busy "Sending SIGTERM To Processes"
+/sbin/killall5 -15 &> /dev/null
+/bin/sleep 5
+stat_done
+
+stat_busy "Sending SIGKILL To Processes"
+/sbin/killall5 -9 &> /dev/null
+/bin/sleep 1
+stat_done
+
+stat_busy "Saving Random Seed"
+/bin/dd if=/dev/urandom of=/var/run/random-seed count=1 bs=512 2> /dev/null
+stat_done
+
+stat_busy "Saving System Clock"
+if [ "$HARDWARECLOCK" = "UTC" ]; then
+ /sbin/hwclock --directisa --utc --systohc
+else
+ /sbin/hwclock --directisa --localtime --systohc
+fi
+stat_done
+
+# removing psmouse module to fix some reboot issues on newer laptops
+modprobe -r psmouse >/dev/null 2>&1
+
+# Write to wtmp file before unmounting
+/sbin/halt -w
+
+stat_busy "Deactivating Swap"
+/sbin/swapoff -a
+stat_done
+
+stat_busy "Unmounting Filesystems"
+/bin/umount -a
+stat_done
+
+if [ "$USELVM" = "yes" -o "$USELVM" = "YES" ]; then
+ if [ -d /etc/lvm -a -x /sbin/lvm ]; then
+ /bin/mount -n -t sysfs none /sys 2>/dev/null
+ if [ -d /sys/block ]; then
+ stat_busy "Deactivating LVM2 groups"
+ /sbin/lvm vgchange --ignorelockingfailure -a n
+ stat_done
+ umount /sys
+ fi
+ fi
+fi
+
+stat_busy "Remounting Root Filesystem Read-only"
+/bin/mount -n -o remount,ro /
+stat_done
+exit 0
+# Power off or reboot
+if [ "$RUNLEVEL" = "0" ]; then
+ printsep
+ printhl "${C_H2}POWER OFF"
+ /sbin/poweroff -d -f -h -i
+else
+ printsep
+ printhl "${C_H2}REBOOTING"
+ # adding kexec support
+ [ -x /usr/sbin/kexec ] && /usr/sbin/kexec -e > /dev/null 2>&1
+ /sbin/reboot -d -f -i
+fi
+
+# End of file
+# vim: set ts=2 noet:
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/tweak.sh b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/tweak.sh
new file mode 100755
index 0000000..5c73cf4
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/post_process/tweak.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+useradd -m -s /bin/bash mythtv -G audio,video,optical,storage,users
+echo 'setting mythtv password to "a" '
+passwd mythtv <<EOF
+a
+a
+EOF
+
+echo 'setting root password to "a" '
+passwd root <<EOF
+a
+a
+EOF
+
+#edit /home/mythtv/.xinitrc and uncomment exec fluxbox
+cp -rvpf /.tweak/home/mythtv /home/
+
+
+
+chown -R mythtv.mythtv /home/mythtv/
+
+
+
+cp -f /.tweak/hosts.allow /etc/hosts.allow
+cp -f /.tweak/securetty /etc/securetty
+cp -f /.tweak/rc.conf /etc/rc.conf
+#cp -f rc.local /etc/rc.local
+#cp -f locale.gen /etc/locale.gen
+
+cp -f /.tweak/rc.shutdown /etc/rc.shutdown
+cp -f /.tweak/menu.lst /boot/grub/menu.lst
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/pre-process.sh b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/pre-process.sh
new file mode 100755
index 0000000..5bc1f9c
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/pre-process.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+rm -f overlay.xpk
+if [ -d overlay/home/mythtv ]
+then
+ chown -R 1000 overlay/home/mythtv
+fi
+./create_overlay.sh
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rcconfx b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rcconfx
new file mode 100644
index 0000000..23e671e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rcconfx
@@ -0,0 +1,19 @@
+#
+# patch file for /etc/rc.conf
+#
+
+LOCALE="en_US.utf8"
+HARDWARECLOCK="UTC"
+TIMEZONE="UTC"
+KEYMAP="us"
+
+MODULES=(floppy)
+
+HOSTNAME="larch5"
+
+USELVM="yes"
+
+#eth0="dhcp"
+
+DAEMONS=(syslog-ng network mysqld dbus hal !slim sshd)
+SPLASH="splashy"
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/X11/xinit/startx.custom b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/X11/xinit/startx.custom
new file mode 100644
index 0000000..8e3ec5e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/X11/xinit/startx.custom
@@ -0,0 +1,22 @@
+if grep -v nox /proc/cmdline &>/dev/null && \
+ [ -z "$DISPLAY" ] && echo $(tty) | grep /vc/1 &>/dev/null; then
+ if grep i810 /proc/cmdline &>/dev/null; then
+ startx -- -config xorg.conf.i810
+ else
+ startx
+ fi
+
+ # Maybe there should be some code here to handle a failed startx?
+
+ # The 'return' value is at /tmp/xlogout
+ # If there is nothing there, switch user to 'newuser'
+ # If there is also nothing there, login as root
+ # - if already root, fall through to terminal
+
+ if [ -f /tmp/xlogout ] || [ -f /tmp/newuser ]; then
+ logout
+ elif [ ${UID} -ne 0 ]; then
+ echo "root" >/tmp/newuser
+ logout
+ fi
+fi
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/X11/xinit/xinitrc.custom b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/X11/xinit/xinitrc.custom
new file mode 100644
index 0000000..5f04171
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/X11/xinit/xinitrc.custom
@@ -0,0 +1,4 @@
+# Set the keymap
+xkmap-set
+
+exec fluxbox
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/X11/xorg.conf b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/X11/xorg.conf
new file mode 100644
index 0000000..6d11b2e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/X11/xorg.conf
@@ -0,0 +1,49 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ Identifier "Card0"
+ Driver "vesa"
+EndSection
+
+Section "Monitor"
+ Identifier "Monitor0"
+ HorizSync 30.0 - 65.0
+ VertRefresh 50.0 - 75.0
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ DefaultDepth 16
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ Modes "1024x768" "800x600"
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/X11/xorg.conf.i810 b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/X11/xorg.conf.i810
new file mode 100644
index 0000000..9615569
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/X11/xorg.conf.i810
@@ -0,0 +1,59 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ ### Available Driver options are:-
+ ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
+ ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
+ ### [arg]: arg optional
+ #Option "NoAccel" # [<bool>]
+ #Option "SWcursor" # [<bool>]
+ #Option "ColorKey" # <i>
+ #Option "CacheLines" # <i>
+ #Option "Dac6Bit" # [<bool>]
+ #Option "DRI" # [<bool>]
+ #Option "NoDDC" # [<bool>]
+ #Option "ShowCache" # [<bool>]
+ #Option "XvMCSurfaces" # <i>
+ #Option "PageFlip" # [<bool>]
+ Option "DRI" "False"
+ #Option "AccelMethod" "exa"
+ #Option "MigrationHeuristic" "greedy"
+ #Option "ExaNoComposite" "False"
+ Identifier "Card0"
+ Driver "intel"
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/X11/xorg.conf.i810.2 b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/X11/xorg.conf.i810.2
new file mode 100644
index 0000000..a295b38
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/X11/xorg.conf.i810.2
@@ -0,0 +1,67 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ ### Available Driver options are:-
+ ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
+ ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
+ ### [arg]: arg optional
+ #Option "NoAccel" # [<bool>]
+ #Option "SWcursor" # [<bool>]
+ #Option "ColorKey" # <i>
+ #Option "CacheLines" # <i>
+ #Option "Dac6Bit" # [<bool>]
+ #Option "DRI" # [<bool>]
+ #Option "NoDDC" # [<bool>]
+ #Option "ShowCache" # [<bool>]
+ #Option "XvMCSurfaces" # <i>
+ #Option "PageFlip" # [<bool>]
+ Option "DRI" "False"
+ #Option "AccelMethod" "exa"
+ #Option "MigrationHeuristic" "greedy"
+ #Option "ExaNoComposite" "False"
+ Identifier "Card0"
+ Driver "intel"
+EndSection
+
+Section "Monitor"
+ Identifier "Monitor0"
+ HorizSync 30.0 - 65.0
+ VertRefresh 50.0 - 75.0
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ DefaultDepth 16
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ Modes "1024x768" "800x600"
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/X11/xorg.conf.vesa b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/X11/xorg.conf.vesa
new file mode 100644
index 0000000..6d11b2e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/X11/xorg.conf.vesa
@@ -0,0 +1,49 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ Identifier "Card0"
+ Driver "vesa"
+EndSection
+
+Section "Monitor"
+ Identifier "Monitor0"
+ HorizSync 30.0 - 65.0
+ VertRefresh 50.0 - 75.0
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ DefaultDepth 16
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ Modes "1024x768" "800x600"
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/conf.d/dhcpcd b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/conf.d/dhcpcd
new file mode 100644
index 0000000..ab53c30
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/conf.d/dhcpcd
@@ -0,0 +1,6 @@
+#
+# Arguments to be passed to the DHCP client daemon
+#
+
+DHCPCD_ARGS="-t 10 -h $HOSTNAME"
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/hosts.allow b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/hosts.allow
new file mode 100644
index 0000000..19bc4d8
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/hosts.allow
@@ -0,0 +1,13 @@
+#
+# /etc/hosts.allow
+#
+
+ALL: 127.0.0.1
+
+# To allow ssh in from anywhere
+sshd: ALL
+
+# To allow ssh in from local net (example)
+#sshd: 192.168.178.0/255.255.255.0
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/inittab b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/inittab
new file mode 100644
index 0000000..2de483f
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/inittab
@@ -0,0 +1,43 @@
+#
+# /etc/inittab
+#
+
+# Runlevels:
+# 0 Halt
+# 1(S) Single-user
+# 2 Not used
+# 3 Multi-user
+# 4 Not used
+# 5 X11
+# 6 Reboot
+
+## Only one of the following two lines can be uncommented!
+# Boot to console
+id:5:initdefault:
+# Boot to X11
+#id:5:initdefault:
+
+rc::sysinit:/etc/rc.sysinit
+rs:S1:wait:/etc/rc.single
+rm:2345:wait:/etc/rc.multi
+rh:06:wait:/etc/rc.shutdown
+su:S:wait:/sbin/sulogin -p
+
+# -8 options fixes umlauts problem on login
+c1:2345:respawn:/sbin/agetty -8 38400 vc/1 linux -n -l /etc/ulogin
+c2:2345:respawn:/sbin/agetty -8 38400 vc/2 linux
+c3:2345:respawn:/sbin/agetty -8 38400 vc/3 linux
+c4:2345:respawn:/sbin/agetty -8 38400 vc/4 linux
+c5:2345:respawn:/sbin/agetty -8 38400 vc/5 linux
+c6:2345:respawn:/sbin/agetty -8 38400 vc/6 linux
+c7:5:respawn:/usr/bin/openvt -fwc 6 -- /bin/su - mythtv -c /usr/bin/startx >& /dev/null
+
+ca::ctrlaltdel:/sbin/shutdown -t3 -r now
+
+# Example lines for starting a login manager
+#x:5:respawn:/usr/bin/xdm -nodaemon
+#x:5:respawn:/usr/sbin/gdm -nodaemon
+#x:5:respawn:/opt/kde/bin/kdm -nodaemon
+#x:5:respawn:/usr/bin/slim >& /dev/null
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/inittab.larchsave b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/inittab.larchsave
new file mode 100644
index 0000000..2de483f
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/inittab.larchsave
@@ -0,0 +1,43 @@
+#
+# /etc/inittab
+#
+
+# Runlevels:
+# 0 Halt
+# 1(S) Single-user
+# 2 Not used
+# 3 Multi-user
+# 4 Not used
+# 5 X11
+# 6 Reboot
+
+## Only one of the following two lines can be uncommented!
+# Boot to console
+id:5:initdefault:
+# Boot to X11
+#id:5:initdefault:
+
+rc::sysinit:/etc/rc.sysinit
+rs:S1:wait:/etc/rc.single
+rm:2345:wait:/etc/rc.multi
+rh:06:wait:/etc/rc.shutdown
+su:S:wait:/sbin/sulogin -p
+
+# -8 options fixes umlauts problem on login
+c1:2345:respawn:/sbin/agetty -8 38400 vc/1 linux -n -l /etc/ulogin
+c2:2345:respawn:/sbin/agetty -8 38400 vc/2 linux
+c3:2345:respawn:/sbin/agetty -8 38400 vc/3 linux
+c4:2345:respawn:/sbin/agetty -8 38400 vc/4 linux
+c5:2345:respawn:/sbin/agetty -8 38400 vc/5 linux
+c6:2345:respawn:/sbin/agetty -8 38400 vc/6 linux
+c7:5:respawn:/usr/bin/openvt -fwc 6 -- /bin/su - mythtv -c /usr/bin/startx >& /dev/null
+
+ca::ctrlaltdel:/sbin/shutdown -t3 -r now
+
+# Example lines for starting a login manager
+#x:5:respawn:/usr/bin/xdm -nodaemon
+#x:5:respawn:/usr/sbin/gdm -nodaemon
+#x:5:respawn:/opt/kde/bin/kdm -nodaemon
+#x:5:respawn:/usr/bin/slim >& /dev/null
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/larch-shutdown b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/larch-shutdown
new file mode 100644
index 0000000..d614d4b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/larch-shutdown
@@ -0,0 +1,47 @@
+# Functions used by rc.shutdown
+# Modified versions for larch live systems
+
+f_saveclock ()
+{
+ :
+}
+
+f_swapoff ()
+{
+ ############################# Include session saving functions
+ # . /opt/larch-live/session-save/shutdown2
+ # if [ -f /tmp/checkse ]; then
+ # . /tmp/checkse
+ #else
+ # checkse
+ # fi
+
+ if [ -n "${saving}" ] && ! session_save; then
+ echo
+ echo "If you know what you are doing, you may be able to recover"
+ echo "something from this unpleasant situation."
+ echo
+ echo "You may use the command line to investigate further ..."
+ echo
+ echo "When finished please enter 'exit', the shutdown process will"
+ echo "then continue."
+ sh -i
+ fi
+
+ #############################
+
+ stat_busy "Deactivating Swap"
+ /sbin/swapoff -a
+ stat_done
+}
+
+f_remountro ()
+{
+ if [ -n "${ejectdev}" ]; then
+ echo "Ejecting live CD"
+ eject ${ejectdev}
+ echo "sleeping for 6 seconds"
+ sleep 6
+
+ fi
+}
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/ppp/options b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/ppp/options
new file mode 100644
index 0000000..237c390
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/ppp/options
@@ -0,0 +1,352 @@
+# /etc/ppp/options
+#
+# Originally created by Jim Knoble <jmknoble@mercury.interpath.net>
+# Modified for Debian by alvar Bray <alvar@meiko.co.uk>
+# Modified for PPP Server setup by Christoph Lameter <clameter@debian.org>
+# Modified for ArchLinux by Manolis Tzanidakis <manolis@archlinux.org>
+#
+# To quickly see what options are active in this file, use this command:
+# egrep -v '#|^ *$' /etc/ppp/options
+
+# Specify which DNS Servers the incoming Win95 or WinNT Connection should use
+# Two Servers can be remotely configured
+# ms-dns 192.168.1.1
+# ms-dns 192.168.1.2
+
+# Specify which WINS Servers the incoming connection Win95 or WinNT should use
+# ms-wins 192.168.1.50
+# ms-wins 192.168.1.51
+
+# Run the executable or shell command specified after pppd has
+# terminated the link. This script could, for example, issue commands
+# to the modem to cause it to hang up if hardware modem control signals
+# were not available.
+#disconnect "chat -- \d+++\d\c OK ath0 OK"
+
+# async character map -- 32-bit hex; each bit is a character
+# that needs to be escaped for pppd to receive it. 0x00000001
+# represents '\x01', and 0x80000000 represents '\x1f'.
+asyncmap 0
+
+# Require the peer to authenticate itself before allowing network
+# packets to be sent or received.
+# Please do not disable this setting. It is expected to be standard in
+# future releases of pppd. Use the call option (see manpage) to disable
+# authentication for specific peers.
+#auth
+
+# Use hardware flow control (i.e. RTS/CTS) to control the flow of data
+# on the serial port.
+crtscts
+
+# Use software flow control (i.e. XON/XOFF) to control the flow of data
+# on the serial port.
+#xonxoff
+
+# Specifies that certain characters should be escaped on transmission
+# (regardless of whether the peer requests them to be escaped with its
+# async control character map). The characters to be escaped are
+# specified as a list of hex numbers separated by commas. Note that
+# almost any character can be specified for the escape option, unlike
+# the asyncmap option which only allows control characters to be
+# specified. The characters which may not be escaped are those with hex
+# values 0x20 - 0x3f or 0x5e.
+#escape 11,13,ff
+
+# Don't use the modem control lines.
+#local
+
+# Specifies that pppd should use a UUCP-style lock on the serial device
+# to ensure exclusive access to the device.
+lock
+
+# Don't show the passwords when logging the contents of PAP packets.
+# This is the default.
+hide-password
+
+# When logging the contents of PAP packets, this option causes pppd to
+# show the password string in the log message.
+#show-password
+
+# Use the modem control lines. On Ultrix, this option implies hardware
+# flow control, as for the crtscts option. (This option is not fully
+# implemented.)
+modem
+
+# Set the MRU [Maximum Receive Unit] value to <n> for negotiation. pppd
+# will ask the peer to send packets of no more than <n> bytes. The
+# minimum MRU value is 128. The default MRU value is 1500. A value of
+# 296 is recommended for slow links (40 bytes for TCP/IP header + 256
+# bytes of data).
+#mru 542
+
+# Set the interface netmask to <n>, a 32 bit netmask in "decimal dot"
+# notation (e.g. 255.255.255.0).
+#netmask 255.255.255.0
+
+# Disables the default behaviour when no local IP address is specified,
+# which is to determine (if possible) the local IP address from the
+# hostname. With this option, the peer will have to supply the local IP
+# address during IPCP negotiation (unless it specified explicitly on the
+# command line or in an options file).
+#noipdefault
+
+# Enables the "passive" option in the LCP. With this option, pppd will
+# attempt to initiate a connection; if no reply is received from the
+# peer, pppd will then just wait passively for a valid LCP packet from
+# the peer (instead of exiting, as it does without this option).
+#passive
+
+# With this option, pppd will not transmit LCP packets to initiate a
+# connection until a valid LCP packet is received from the peer (as for
+# the "passive" option with old versions of pppd).
+#silent
+
+# Don't request or allow negotiation of any options for LCP and IPCP
+# (use default values).
+#-all
+
+# Disable Address/Control compression negotiation (use default, i.e.
+# address/control field disabled).
+#-ac
+
+# Disable asyncmap negotiation (use the default asyncmap, i.e. escape
+# all control characters).
+#-am
+
+# Don't fork to become a background process (otherwise pppd will do so
+# if a serial device is specified).
+#-detach
+
+# Disable IP address negotiation (with this option, the remote IP
+# address must be specified with an option on the command line or in
+# an options file).
+#-ip
+
+# Disable IPCP negotiation and IP communication. This option should
+# only be required if the peer is buggy and gets confused by requests
+# from pppd for IPCP negotiation.
+#noip
+
+# Disable magic number negotiation. With this option, pppd cannot
+# detect a looped-back line.
+#-mn
+
+# Disable MRU [Maximum Receive Unit] negotiation (use default, i.e.
+# 1500).
+#-mru
+
+# Disable protocol field compression negotiation (use default, i.e.
+# protocol field compression disabled).
+#-pc
+
+# Require the peer to authenticate itself using PAP.
+#+pap
+
+# Don't agree to authenticate using PAP.
+#-pap
+
+# Require the peer to authenticate itself using CHAP [Cryptographic
+# Handshake Authentication Protocol] authentication.
+#+chap
+
+# Don't agree to authenticate using CHAP.
+#-chap
+
+# Disable negotiation of Van Jacobson style IP header compression (use
+# default, i.e. no compression).
+#-vj
+
+# Increase debugging level (same as -d). If this option is given, pppd
+# will log the contents of all control packets sent or received in a
+# readable form. The packets are logged through syslog with facility
+# daemon and level debug. This information can be directed to a file by
+# setting up /etc/syslog.conf appropriately (see syslog.conf(5)). (If
+# pppd is compiled with extra debugging enabled, it will log messages
+# using facility local2 instead of daemon).
+#debug
+
+# Append the domain name <d> to the local host name for authentication
+# purposes. For example, if gethostname() returns the name porsche,
+# but the fully qualified domain name is porsche.Quotron.COM, you would
+# use the domain option to set the domain name to Quotron.COM.
+#domain <d>
+
+# Enable debugging code in the kernel-level PPP driver. The argument n
+# is a number which is the sum of the following values: 1 to enable
+# general debug messages, 2 to request that the contents of received
+# packets be printed, and 4 to request that the contents of transmitted
+# packets be printed.
+#kdebug n
+
+# Set the MTU [Maximum Transmit Unit] value to <n>. Unless the peer
+# requests a smaller value via MRU negotiation, pppd will request that
+# the kernel networking code send data packets of no more than n bytes
+# through the PPP network interface.
+#mtu <n>
+
+# Set the name of the local system for authentication purposes to <n>.
+# This is a privileged option. With this option, pppd will use lines in the
+# secrets files which have <n> as the second field when looking for a
+# secret to use in authenticating the peer. In addition, unless overridden
+# with the user option, <n> will be used as the name to send to the peer
+# when authenticating the local system to the peer. (Note that pppd does
+# not append the domain name to <n>.)
+#name <n>
+
+# Enforce the use of the hostname as the name of the local system for
+# authentication purposes (overrides the name option).
+#usehostname
+
+# Set the assumed name of the remote system for authentication purposes
+# to <n>.
+#remotename <n>
+
+# Add an entry to this system's ARP [Address Resolution Protocol]
+# table with the IP address of the peer and the Ethernet address of this
+# system.
+proxyarp
+
+# Use the system password database for authenticating the peer using
+# PAP. Note: mgetty already provides this option. If this is specified
+# then dialin from users using a script under Linux to fire up ppp wont work.
+# login
+
+# If this option is given, pppd will send an LCP echo-request frame to the
+# peer every n seconds. Normally the peer should respond to the echo-request
+# by sending an echo-reply. This option can be used with the
+# lcp-echo-failure option to detect that the peer is no longer connected.
+lcp-echo-interval 30
+
+# If this option is given, pppd will presume the peer to be dead if n
+# LCP echo-requests are sent without receiving a valid LCP echo-reply.
+# If this happens, pppd will terminate the connection. Use of this
+# option requires a non-zero value for the lcp-echo-interval parameter.
+# This option can be used to enable pppd to terminate after the physical
+# connection has been broken (e.g., the modem has hung up) in
+# situations where no hardware modem control lines are available.
+lcp-echo-failure 4
+
+# Set the LCP restart interval (retransmission timeout) to <n> seconds
+# (default 3).
+#lcp-restart <n>
+
+# Set the maximum number of LCP terminate-request transmissions to <n>
+# (default 3).
+#lcp-max-terminate <n>
+
+# Set the maximum number of LCP configure-request transmissions to <n>
+# (default 10).
+#lcp-max-configure <n>
+
+# Set the maximum number of LCP configure-NAKs returned before starting
+# to send configure-Rejects instead to <n> (default 10).
+#lcp-max-failure <n>
+
+# Set the IPCP restart interval (retransmission timeout) to <n>
+# seconds (default 3).
+#ipcp-restart <n>
+
+# Set the maximum number of IPCP terminate-request transmissions to <n>
+# (default 3).
+#ipcp-max-terminate <n>
+
+# Set the maximum number of IPCP configure-request transmissions to <n>
+# (default 10).
+#ipcp-max-configure <n>
+
+# Set the maximum number of IPCP configure-NAKs returned before starting
+# to send configure-Rejects instead to <n> (default 10).
+#ipcp-max-failure <n>
+
+# Set the PAP restart interval (retransmission timeout) to <n> seconds
+# (default 3).
+#pap-restart <n>
+
+# Set the maximum number of PAP authenticate-request transmissions to
+# <n> (default 10).
+#pap-max-authreq <n>
+
+# Set the maximum time that pppd will wait for the peer to authenticate
+# itself with PAP to <n> seconds (0 means no limit).
+#pap-timeout <n>
+
+# Set the CHAP restart interval (retransmission timeout for
+# challenges) to <n> seconds (default 3).
+#chap-restart <n>
+
+# Set the maximum number of CHAP challenge transmissions to <n>
+# (default 10).
+#chap-max-challenge
+
+# If this option is given, pppd will rechallenge the peer every <n>
+# seconds.
+#chap-interval <n>
+
+# With this option, pppd will accept the peer's idea of our local IP
+# address, even if the local IP address was specified in an option.
+#ipcp-accept-local
+
+# With this option, pppd will accept the peer's idea of its (remote) IP
+# address, even if the remote IP address was specified in an option.
+#ipcp-accept-remote
+
+# Disable the IPXCP and IPX protocols.
+# To let pppd pass IPX packets comment this out --- you'll probably also
+# want to install ipxripd, and have the Internal IPX Network option enabled
+# in your kernel. /usr/doc/HOWTO/IPX-HOWTO.gz contains more info.
+noipx
+
+# Exit once a connection has been made and terminated. This is the default,
+# unless the `persist' or `demand' option has been specified.
+#nopersist
+
+# Do not exit after a connection is terminated; instead try to reopen
+# the connection.
+#persist
+
+# Terminate after n consecutive failed connection attempts.
+# A value of 0 means no limit. The default value is 10.
+#maxfail <n>
+
+# Initiate the link only on demand, i.e. when data traffic is present.
+# With this option, the remote IP address must be specified by the user on
+# the command line or in an options file. Pppd will initially configure
+# the interface and enable it for IP traffic without connecting to the peer.
+# When traffic is available, pppd will connect to the peer and perform
+# negotiation, authentication, etc. When this is completed, pppd will
+# commence passing data packets (i.e., IP packets) across the link.
+#demand
+
+# Specifies that pppd should disconnect if the link is idle for <n> seconds.
+# The link is idle when no data packets (i.e. IP packets) are being sent or
+# received. Note: it is not advisable to use this option with the persist
+# option without the demand option. If the active-filter option is given,
+# data packets which are rejected by the specified activity filter also
+# count as the link being idle.
+#idle <n>
+
+# Specifies how many seconds to wait before re-initiating the link after
+# it terminates. This option only has any effect if the persist or demand
+# option is used. The holdoff period is not applied if the link was
+# terminated because it was idle.
+#holdoff <n>
+
+# Wait for up n milliseconds after the connect script finishes for a valid
+# PPP packet from the peer. At the end of this time, or when a valid PPP
+# packet is received from the peer, pppd will commence negotiation by
+# sending its first LCP packet. The default value is 1000 (1 second).
+# This wait period only applies if the connect or pty option is used.
+#connect-delay <n>
+
+# Packet filtering: for more information, see pppd(8)
+# Any packets matching the filter expression will be interpreted as link
+# activity, and will cause a "demand" connection to be activated, and reset
+# the idle connection timer. (idle option)
+# The filter expression is akin to that of tcpdump(1)
+#active-filter <filter-expression>
+
+# uncomment the line below this if you use PPPoE
+#plugin /usr/lib/pppd/plugins/pppoe.so
+
+# ---<End of File>---
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/rc.local b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/rc.local
new file mode 100755
index 0000000..216ec8e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/rc.local
@@ -0,0 +1,16 @@
+#!/bin/bash
+#
+# /etc/rc.local: Local multi-user startup script.
+#
+
+#install initial database
+pacman -S --noconfirm mythdb-initial 2>/dev/null
+
+# Set up automatically logged in user (larch live system only)
+if [ -f /.livesys/autologin ]; then
+ cp /.livesys/autologin /tmp/newuser
+fi
+
+# Restore saved sound volume, etc.
+#alsactl restore
+#install initial database
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/rc.local.orig b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/rc.local.orig
new file mode 100755
index 0000000..47b24ef
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/rc.local.orig
@@ -0,0 +1,7 @@
+#!/bin/bash
+#
+# /etc/rc.local: Local multi-user startup script.
+#
+
+# Restore saved sound volume, etc.
+alsactl restore
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/rc.local.shutdown b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/rc.local.shutdown
new file mode 100755
index 0000000..2b5f735
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/rc.local.shutdown
@@ -0,0 +1,7 @@
+#!/bin/bash
+#
+# /etc/rc.local.shutdown: Local shutdown script.
+#
+
+# Save sound volume, etc.
+alsactl store
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/skel/.bash_profile b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/skel/.bash_profile
new file mode 100644
index 0000000..600bd9b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/skel/.bash_profile
@@ -0,0 +1,3 @@
+. $HOME/.bashrc
+
+. /etc/X11/xinit/startx.custom
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/skel/.bashrc b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/skel/.bashrc
new file mode 100644
index 0000000..fcabce0
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/skel/.bashrc
@@ -0,0 +1,3 @@
+alias ls='ls --color=auto'
+PS1='[\u@\h \W]\$ '
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/skel/.xinitrc b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/skel/.xinitrc
new file mode 100644
index 0000000..c6febe5
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/skel/.xinitrc
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+#
+# ~/.xinitrc
+#
+# Executed by startx (run your window manager from here)
+#
+
+# exec gnome-session
+# exec startkde
+# exec startxfce4
+# exec icewm
+# exec openbox
+# exec blackbox
+exec fluxbox
+# exec ratpoison
+# exec dwm
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/skel/.xsession b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/skel/.xsession
new file mode 100755
index 0000000..a16dc0b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/skel/.xsession
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+#
+# ~/.xsession
+#
+# Executed by xdm/gdm/kdm at login
+#
+
+/bin/bash --login -i ~/.xinitrc
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/slim.conf b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/slim.conf
new file mode 100644
index 0000000..35ed579
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-REMOTE/rootoverlay/etc/slim.conf
@@ -0,0 +1,79 @@
+# Path, X server and arguments (if needed)
+# Note: -xauth $authfile is automatically appended
+default_path ./:/bin:/usr/bin:/usr/local/bin:/usr/bin
+default_xserver /usr/bin/X
+xserver_arguments -nolisten tcp vt07
+
+# Commands for halt, login, etc.
+halt_cmd /sbin/shutdown -h now
+reboot_cmd /sbin/shutdown -r now
+console_cmd /usr/bin/terminal -x /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
+#suspend_cmd /usr/sbin/suspend
+
+# Full path to the xauth binary
+xauth_path /usr/bin/xauth
+
+# Xauth file for server
+authfile /var/run/slim.auth
+
+
+# Activate numlock when slim starts. Valid values: on|off
+# numlock on
+
+# Hide the mouse cursor (note: does not work with some WMs).
+# Valid values: true|false
+# hidecursor false
+
+# This command is executed after a succesful login.
+# you can place the %session and %theme variables
+# to handle launching of specific commands in .xinitrc
+# depending of chosen session and slim theme
+#
+# NOTE: if your system does not have bash you need
+# to adjust the command according to your preferred shell,
+# i.e. for freebsd use:
+# login_cmd exec /bin/sh - ~/.xinitrc %session
+login_cmd exec /bin/bash -login ~/.xinitrc %session
+
+# Commands executed when starting and exiting a session.
+# They can be used for registering a X11 session with
+# sessreg. You can use the %user variable
+#
+# sessionstart_cmd some command
+# sessionstop_cmd some command
+
+# Start in daemon mode. Valid values: yes | no
+# Note that this can overridden by the command line
+# option "-d"
+# daemon yes
+
+# Available sessions (first one is the default).
+# The current chosen session name is replaced in the login_cmd
+# above, so your login command can handle different sessions.
+# see the xinitrc.sample file shipped with slim sources
+sessions xfce4,icewm,wmaker,blackbox
+
+# Executed when pressing F11 (requires imagemagick)
+screenshot_cmd import -window root /slim.png
+
+# welcome message. Available variables: %host, %domain
+welcome_msg Welcome to %host
+
+# shutdown / reboot messages
+shutdown_msg The system is halting...
+reboot_msg The system is rebooting...
+
+# default user, leave blank or remove this line
+# for avoid pre-loading the username.
+#default_user simone
+
+# current theme, use comma separated list to specify a set to
+# randomly choose from
+current_theme dlarch
+
+# Lock file
+lockfile /var/lock/slim.lock
+
+# Log file
+logfile /var/log/slim.log
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/addedpacks b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/addedpacks
new file mode 100644
index 0000000..6668d64
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/addedpacks
@@ -0,0 +1,170 @@
+# These are needed to build a live CD
+linhes-live
+squashfs-tools
+lzop
+
+syslinux
+
+# You need a kernel.
+#kernel26 is now in 'base'
+aufs
+
+# To eject a cd
+eject
+
+# Useful for use as installer, etc.
+#ntfsprogs
+#parted
+
+#ddcxinfo-knoppix
+#hwd
+
+sudo
+
+lsof
+cdrkit
+dvd+rw-tools
+
+# Needed by the installer
+#python
+
+#base-devel
+#larch
+
+# generally useful tools which don't require X
+#mtools is required by syslinux
+openssh
+dosfstools
+alsa-lib
+alsa-oss
+alsa-utils
+cdparanoia
+cdrdao
+
+# Xorg packages
+xorg-server
+xorg-xkb-utils
+xorg-xauth
+xorg-server-utils
+xorg-xinit
+xorg-input-drivers
+xterm
+xorg-fonts-100dpi
+xorg-fonts-75dpi
+xorg-res-utils
+
+#xorg-video-drivers
+xf86-video-amd
+xf86-video-apm
+xf86-video-ark
+xf86-video-ati
+xf86-video-chips
+xf86-video-cirrus
+xf86-video-dummy
+xf86-video-fbdev
+xf86-video-glint
+xf86-video-i128
+xf86-video-i740
+#xf86-video-i810
+xf86-video-imstt
+xf86-video-intel
+xf86-video-mga
+xf86-video-neomagic
+xf86-video-nv
+xf86-video-radeonhd
+xf86-video-rendition
+xf86-video-s3
+xf86-video-s3virge
+xf86-video-savage
+xf86-video-siliconmotion
+xf86-video-sis
+xf86-video-sisusb
+#xf86-video-tdfx
+xf86-video-trident
+xf86-video-tseng
+xf86-video-unichrome
+xf86-video-v4l
+xf86-video-vesa
+xf86-video-vga
+#xf86-video-via
+xf86-video-vmware
+xf86-video-voodoo
+
+# X apps
+#luser
+#localed
+
+#xkmap
+
+#gparted
+#larchin
+
+#mythtv
+mythtv
+mytharchive
+mythbrowser
+mythcontrols
+mythflix
+mythgallery
+mythgame
+mythmusic
+mythphone
+myththemes
+mythweather
+mythweb
+mythvideo
+nuvexport
+lirc
+lirc-utils
+mysql
+xmltv
+esd
+
+#Window Manager
+fluxbox
+feh
+
+#Other
+dbus
+hal
+fftw2
+libcdaudio
+iptables
+pkgconfig
+taglib
+
+#MythVantage Installer deps
+bc
+mysql-python
+expect
+curl
+dnsutils
+
+#Wireless
+b43-fwcutter
+ipw2100-fw
+ipw2200-fw
+ipw3945
+ipw3945-ucode
+ipw3945d
+iwlwifi-3945-ucode
+iwlwifi-4965-ucode
+madwifi
+madwifi-utils
+ndiswrapper
+ndiswrapper-utils
+netcfg
+rt2500
+rt2x00-rt61-fw
+rt2x00-rt71w-fw
+tiacx
+tiacx-firmware
+wireless_tools
+wlan-ng26
+wlan-ng26-utils
+zd1211-firmware
+
+#----
+live-installer
+etcnet
+runit
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/cache_packs b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/cache_packs
new file mode 100644
index 0000000..b95e6f4
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/cache_packs
@@ -0,0 +1 @@
+mythdb-initial
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/cd-root/isolinux/isolinux.cfg b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/cd-root/isolinux/isolinux.cfg
new file mode 100644
index 0000000..26a365a
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/cd-root/isolinux/isolinux.cfg
@@ -0,0 +1,49 @@
+default vesamenu.c32
+prompt 0
+timeout 50
+
+MENU BACKGROUND vbg.jpg
+MENU COLOR border 31;40 #90ffff00 #00000000 std
+MENU COLOR sel 31;47 #00000000 #FFFFFF15 al
+
+MENU TITLE LinHES: The Linux Home Entertainment System
+
+label linux
+MENU LABEL LinHES with Splashy (default).
+kernel vmlinuz
+append initrd=larch.img vga=791 quiet splash
+
+label linux-nosplash
+MENU LABEL LinHES without splash screen.
+kernel vmlinuz
+append initrd=larch.img
+
+label linux-splash
+MENU LABEL LinHES with splash screen.
+kernel vmlinuz
+append initrd=larch.img vga=791 quiet splash
+
+label linux-i810
+MENU LABEL with Intel i810 driver (DRI disabled)
+kernel vmlinuz
+append initrd=larch.img i810
+
+label linux-nox
+MENU LABEL Boot to console (without X windowing)
+kernel vmlinuz
+append initrd=larch.img 3
+
+label linux-c2r
+MENU LABEL LinHES: copy-to-ram (also activates swap)
+kernel vmlinuz
+append initrd=larch.img c2r
+
+label linux-swap
+MENU LABEL LinHES: Use swap
+kernel vmlinuz
+append initrd=larch.img swap
+
+
+label memtest
+MENU LABEL Memory tester
+kernel memtest
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/cd-root/isolinux/vbg.jpg b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/cd-root/isolinux/vbg.jpg
new file mode 100644
index 0000000..d01f1f1
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/cd-root/isolinux/vbg.jpg
Binary files differ
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/cd-root/larch/copy/actions.rc b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/cd-root/larch/copy/actions.rc
new file mode 100644
index 0000000..dd95b26
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/cd-root/larch/copy/actions.rc
@@ -0,0 +1,3 @@
+type=0
+orientation=1
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/cd-root/larch/copy/autologin b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/cd-root/larch/copy/autologin
new file mode 100644
index 0000000..93ca142
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/cd-root/larch/copy/autologin
@@ -0,0 +1 @@
+root \ No newline at end of file
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/cd-root/larch/copy/bash_profile b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/cd-root/larch/copy/bash_profile
new file mode 100644
index 0000000..c49349b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/cd-root/larch/copy/bash_profile
@@ -0,0 +1 @@
+. $HOME/.bashrc
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/cd-root/larch/copy/larch0 b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/cd-root/larch/copy/larch0
new file mode 100644
index 0000000..c80b7c2
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/cd-root/larch/copy/larch0
@@ -0,0 +1,63 @@
+# This is a script 'sourced' from the installation script larch-tidy.
+# Its purpose is to remove custom live-only stuff from a just-installed
+# system.
+# ${INSTALL} is the path to the installed system root directory.
+
+rm "${INSTALL}/root/Desktop/Install Arch Linux.desktop"
+
+if [ -f ${INSTALL}/etc/rc.local.orig ]; then
+ mv ${INSTALL}/etc/rc.local.orig ${INSTALL}/etc/rc.local
+fi
+if [ -f ${INSTALL}/etc/rc.local.shutdown.orig ]; then
+ mv ${INSTALL}/etc/rc.local.shutdown.orig ${INSTALL}/etc/rc.local.shutdown
+fi
+
+# slim is currently started in inittab
+#sed -i '/^DAEMONS=/ s|!slim|@slim|' ${INSTALL}/etc/rc.conf
+
+# Copy xorg.conf.i810 to target xorg.conf if necessary
+if ! [ -f /etc/X11/xorg.conf ]; then
+ if grep i810 /proc/cmdline &>/dev/null; then
+ cp /etc/X11/xorg.conf.i810 ${INSTALL}/etc/X11/xorg.conf
+ fi
+fi
+
+#***************************************************#
+# Replace uses of larchquit in xfce panels and menu.#
+#***************************************************#
+### Unfortunately this isn't very simple. If anyone has a better way of
+### providing different Quit actions in the live version and the version
+### installed to disk from it, please let me know!
+### Maybe it would be better just to provide a special live quit desktop
+### icon which can be removed on installation, like the installation icon.
+
+defaultquit='<builtin name="Quit" cmd="Quit" icon="gnome-logout"/>'
+
+replacequit ()
+{
+ for f in ${INSTALL}$1/.config/xfce4/panel/*; do
+ if grep "^Exec=larchquit" ${f}; then
+ n=$( echo ${f} | sed "s|^.*-\([0-9]\+\).*|\1|" )
+ cp /.livesys/actions.rc \
+ ${INSTALL}$1/.config/xfce4/panel/actions-${n}.rc
+ rm ${f}
+
+ sed -i "s|=\"launcher\" id=\"${n}\"|=\"actions\" id=\"${n}\"|" \
+ ${INSTALL}$1/.config/xfce4/panel/panels.xml
+ fi
+ done
+
+ if [ -f ${INSTALL}$1/.bash_profile ]; then
+ sed -i "s|<app .*cmd=\"larchquit.*/>|${defaultquit}|" \
+ ${INSTALL}$1/.config/xfce4/desktop/menu.xml
+
+ cp /.livesys/xfce4-session.rc ${INSTALL}$1/.config/xfce4-session
+ cp /.livesys/bash_profile ${INSTALL}$1/.bash_profile
+ fi
+}
+
+for hd in $( cat ${INSTALL}/etc/passwd | cut -d':' -f6 | grep '^/home/' ) \
+ /root /etc/skel; do
+ replacequit ${hd} &>/dev/null
+done
+#***************************************************#
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/create_overlay.sh b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/create_overlay.sh
new file mode 100755
index 0000000..6a4fdee
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/create_overlay.sh
@@ -0,0 +1 @@
+../../run/xpack -r overlay overlay.xpk
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/locale.gen b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/locale.gen
new file mode 100644
index 0000000..760ec23
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/locale.gen
@@ -0,0 +1,5 @@
+# locales for larch (/etc/locale.gen)
+
+en_US ISO-8859-1
+en_US.UTF-8 UTF-8
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/overlay/home/mythtv/.fluxbox/apps b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/overlay/home/mythtv/.fluxbox/apps
new file mode 100644
index 0000000..5a2b8d6
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/overlay/home/mythtv/.fluxbox/apps
@@ -0,0 +1,2 @@
+[startup] {feh --bg-scale ~/.fluxbox/wallpaper.png}
+[startup] {sudo /usr/MythVantage/bin/mythvantage}
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/overlay/home/mythtv/.xinitrc b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/overlay/home/mythtv/.xinitrc
new file mode 100755
index 0000000..d988c98
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/overlay/home/mythtv/.xinitrc
@@ -0,0 +1,19 @@
+#!/bin/sh
+. /etc/profile
+#
+# ~/.xinitrc
+#
+# Executed by startx (run your window manager from here)
+#
+
+# exec gnome-session
+# exec startkde
+# exec startxfce4
+# exec icewm
+# exec openbox
+# exec blackbox
+# exec fluxbox
+# exec ratpoison
+# exec dwm
+# ... or any other WM of your choosing ...
+exec fluxbox
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/pacman.conf b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/pacman.conf
new file mode 100755
index 0000000..856c327
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/pacman.conf
@@ -0,0 +1,64 @@
+#
+# /etc/pacman.conf
+# from pacman.conf MV
+# NOTE: If you find a mirror that is geographically close to you, please
+# move it to the top of the server list, so pacman will choose it
+# first.
+#
+# To re-sort your mirror lists by ping/traceroute results, use the
+# /usr/bin/sortmirrors script. It requires the "netselect" package.
+#
+
+# See the pacman manpage for option directives
+
+#
+# GENERAL OPTIONS
+#
+[options]
+LogFile = /var/log/pacman.log
+NoUpgrade = etc/passwd etc/group etc/shadow etc/sudoers
+NoUpgrade = etc/fstab etc/raidtab etc/ld.so.conf
+NoUpgrade = etc/rc.conf etc/rc.local
+NoUpgrade = etc/modprobe.conf etc/modules.conf
+NoUpgrade = etc/lilo.conf boot/grub/menu.lst
+NoUpgrade = data/srv/hobbit/etc/bb-hosts
+NoUpgrade = etc/func/minion.conf
+
+HoldPkg = pacman glibc
+CacheDir = /data/var/cache/pacman/pkg
+#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
+
+#
+# REPOSITORIES
+# - can be defined here or included from another file
+# - pacman will search repositories in the order defined here.
+# - local/custom mirrors can be added here or in separate files
+#
+[core-testing]
+#Server = file:///data/local/pkg_repo/i686/core-testing
+Server = http://localmirror/repo/i686/core-testing
+
+[extra-testing]
+#Server = file:///data/local/pkg_repo/i686/core-testing
+Server = http://localmirror/repo/i686/extra-testing
+
+
+
+########################ARCH DEFAULTS#############
+#[core]
+# Add your preferred servers here, they will be used first
+#Include = /etc/pacman.d/mirrorlist
+
+#[extra]
+# Add your preferred servers here, they will be used first
+#Include = /etc/pacman.d/mirrorlist
+
+#[community]
+# Add your preferred servers here, they will be used first
+#Include = /etc/pacman.d/mirrorlist
+
+# Unstable is disabled by default. To enable, uncomment the following
+# two lines. You can add preferred servers immediately after the header,
+# and they will be used before the default mirrors.
+#[unstable]
+#Include = /etc/pacman.d/mirrorlist
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post-process.sh b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post-process.sh
new file mode 100755
index 0000000..131b907
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post-process.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+echo $@
+INSTDIR=$1
+PROFILE=$2
+
+#everything below this point is specific to MythVantage
+cp -rp $PROFILE/post_process $INSTDIR/.tweak
+chroot $INSTDIR .tweak/tweak.sh
+rm -rf $INSTDIR/.tweak
+
+#find the size of the install.
+#This is used to calculate progress on the install
+tsize=`du -sm $INSTDIR/ | cut -f1`
+echo "TOTALSIZE=$tsize" > $INSTDIR/root/.install_size
+upsize=`du -sm --exclude data $INSTDIR/ |cut -f1`
+echo "UPGRADESIZE=$upsize" >> $INSTDIR/root/.install_size
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.bash_profile b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.bash_profile
new file mode 100644
index 0000000..c49349b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.bash_profile
@@ -0,0 +1 @@
+. $HOME/.bashrc
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.bashrc b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.bashrc
new file mode 100644
index 0000000..fcabce0
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.bashrc
@@ -0,0 +1,3 @@
+alias ls='ls --color=auto'
+PS1='[\u@\h \W]\$ '
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.fluxbox/apps b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.fluxbox/apps
new file mode 100644
index 0000000..52db7fe
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.fluxbox/apps
@@ -0,0 +1,2 @@
+[startup] {feh --bg-scale ~/.fluxbox/wallpaper.png}
+[startup] {mythfrontend}
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.fluxbox/init b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.fluxbox/init
new file mode 100644
index 0000000..aa4040a
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.fluxbox/init
@@ -0,0 +1,35 @@
+session.screen0.slit.placement: BottomRight
+session.screen0.slit.direction: Vertical
+session.screen0.slit.onTop: False
+session.screen0.slit.autoHide: True
+session.screen0.tab.placement: Top
+session.screen0.toolbar.onTop: False
+session.screen0.toolbar.visible: False
+session.screen0.toolbar.autoHide: False
+session.screen0.toolbar.placement: BottomCenter
+session.screen0.toolbar.widthPercent: 66
+session.screen0.workspaceNames: one,two,three,four
+session.screen0.strftimeFormat: %k:%M
+session.screen0.focusNewWindows: True
+session.screen0.focusModel: ClickToFocus
+session.screen0.fullMaximization: False
+session.screen0.edgeSnapThreshold: 0
+session.screen0.rowPlacementDirection: LeftToRight
+session.screen0.workspaces: 4
+session.screen0.focusLastWindow: True
+session.screen0.colPlacementDirection: TopToBottom
+session.screen0.windowPlacement: RowSmartPlacement
+session.screen0.tab.width: 64
+session.screen0.tab.height: 16
+session.screen0.showwindowposition: true
+session.opaqueMove: False
+session.autoRaiseDelay: 250
+session.menuFile: ~/.fluxbox/menu
+session.cacheLife: 5
+session.styleFile: /usr/share/fluxbox/styles/bora_black
+session.keyFile: ~/.fluxbox/keys
+session.colorsPerChannel: 4
+session.doubleClickInterval: 250
+session.cacheMax: 200
+session.imageDither: True
+session.configVersion: 1
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.fluxbox/menu b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.fluxbox/menu
new file mode 100644
index 0000000..858090e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.fluxbox/menu
@@ -0,0 +1,81 @@
+# Generated by fluxbox-generate_menu
+#
+# If you read this it means you want to edit this file manually, so here
+# are some useful tips:
+#
+# - You can add your own menu-entries to ~/.fluxbox/usermenu
+#
+# - If you miss apps please let me know and I will add them for the next
+# release.
+#
+# - The -r option prevents removing of empty menu entries and lines which
+# makes things much more readable.
+#
+# - To prevent any other app from overwriting your menu
+# you can change the menu name in .fluxbox/init to:
+# session.menuFile: /home/mythtv/.fluxbox/my-menu
+[begin] (Fluxbox)
+[encoding] {UTF-8}
+ [exec] (xterm) {xterm}
+ [exec] () {} execname is NULL; cannot lookup
+ [exec] (Run) {fbrun }
+[submenu] (Terminals)
+ [exec] (xterm) {xterm}
+[end]
+[submenu] (Editors)
+ [exec] (xedit) {xedit}
+ [exec] (nano) {xterm -e nano}
+ [exec] (vi) {xterm -e vi}
+[end]
+[submenu] (Multimedia)
+[submenu] (Audio)
+ [exec] (alsamixer) {xterm -e alsamixer}
+[end]
+[submenu] (Video)
+ [exec] (gmplayer) {gmplayer}
+[end]
+[submenu] (X-utils)
+ [exec] (xfontsel) {xfontsel}
+ [exec] (xman) {xman}
+ [exec] (xload) {xload}
+ [exec] (xbiff) {xbiff}
+ [exec] (xclock) {xclock}
+ [exec] (xmag) {xmag}
+ [exec] (Reload .Xdefaults) {xrdb -load /home/mythtv/.Xdefaults}
+[end]
+[end]
+[submenu] (Office)
+ [exec] (xclock) {xclock}
+ [exec] (xcalc) {xcalc}
+[end]
+[submenu] (Games)
+ [exec] (xeyes) {xeyes}
+[end]
+[submenu] (System Tools)
+ [exec] (top) {xterm -e top}
+[end]
+[submenu] (fluxbox menu)
+ [config] (Configure)
+[submenu] (System Styles) {Choose a style...}
+ [stylesdir] (/usr/share/fluxbox/styles)
+[end]
+[submenu] (User Styles) {Choose a style...}
+ [stylesdir] (~/.fluxbox/styles)
+[end]
+ [workspaces] (Workspace List)
+[submenu] (Tools)
+ [exec] (Window name) {xprop WM_CLASS|cut -d \" -f 2|xmessage -file - -center}
+ [exec] (Screenshot - JPG) {import screenshot.jpg && display -resize 50% screenshot.jpg}
+ [exec] (Screenshot - PNG) {import screenshot.png && display -resize 50% screenshot.png}
+ [exec] (Run) {fbrun }
+ [exec] (Regen Menu) {/usr/bin/fluxbox-generate_menu }
+[end]
+ [commanddialog] (Fluxbox Command)
+ [reconfig] (Reload config)
+ [restart] (Restart)
+ [exec] (About) {(fluxbox -v; fluxbox -info | sed 1d) 2> /dev/null | xmessage -file - -center}
+ [separator]
+ [exit] (Exit)
+[end]
+[endencoding]
+[end]
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.fluxbox/menuconfig b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.fluxbox/menuconfig
new file mode 100644
index 0000000..ef5b398
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.fluxbox/menuconfig
@@ -0,0 +1,65 @@
+# This file is read by fluxbox-generate_menu. If you don't like a
+# default you can change it here. Don't forget to remove the # in front
+# of the line.
+
+# Your favourite terminal. Put the command in quotes if you want to use
+# options. Put a backslash in before odd chars
+# MY_TERM='Eterm --tint \#123456'
+# MY_TERM='aterm -tint $(random_color)'
+
+# Your favourite browser. You can also specify options.
+# MY_BROWSER=mozilla
+
+# Name of the outputfile
+# MENUFILENAME=/home/mythtv/.fluxbox/menu
+
+# MENUTITLE=`fluxbox -version|cut -d " " -f-2`
+
+# standard url for console-browsers
+# HOMEPAGE=fluxbox.org
+
+# location with your own menu-entries
+# USERMENU=~/.fluxbox/usermenu
+
+# Put the launcher you would like to use here
+# LAUNCHER=fbrun
+# LAUNCHER=fbgm
+
+# Options for fbrun
+# FBRUNOPTIONS='-font 10x20 -fg grey -bg black -title run'
+
+# --- PREFIX'es
+# These are prefixes; So if fluxbox is installed in /usr/bin/fluxbox
+# your prefix is: /usr
+
+# fluxbox-generate already looks in /usr/X11R6, /usr, /usr/local and /opt so
+# there should be no need to specify them.
+#
+# PREFIX=/usr
+# GNOME_PREFIX=/opt/gnome
+# KDE_PREFIX=/opt/kde
+
+
+# Sepparate the list of background-dirs with semicolumns ':'
+# BACKGROUND_DIRS="/home/mythtv/.fluxbox/backgrounds/:/usr/share/fluxbox/backgrounds/:/usr/share/wallpapers"
+
+
+# --- Boolean variables.
+# Setting a variable to no'' won't help. Comment them out if you don't
+# want them. Setting are overruled by the command-line options.
+
+# Include all backgrounds in your backgrounds-directory
+# BACKGROUNDMENUITEM=yes
+
+# Include kde-menus
+# KDEMENU=yes
+
+# Include gnome-menus
+# GNOMEMENU=yes
+
+# enable sudo commands
+# DOSUDO=yes
+
+# Don't cleanup the menu
+# REMOVE=no
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.fluxbox/wallpaper.png b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.fluxbox/wallpaper.png
new file mode 100644
index 0000000..83da80c
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.fluxbox/wallpaper.png
Binary files differ
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.xinitrc b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.xinitrc
new file mode 100755
index 0000000..911e76e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.xinitrc
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+#
+# ~/.xinitrc
+#
+# Executed by startx (run your window manager from here)
+#
+
+# exec gnome-session
+# exec startkde
+# exec startxfce4
+# exec icewm
+# exec openbox
+# exec blackbox
+exec fluxbox
+# exec ratpoison
+# exec dwm
+# ... or any other WM of your choosing ...
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.xsession b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.xsession
new file mode 100755
index 0000000..a16dc0b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/home/mythtv/.xsession
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+#
+# ~/.xsession
+#
+# Executed by xdm/gdm/kdm at login
+#
+
+/bin/bash --login -i ~/.xinitrc
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/hosts.allow b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/hosts.allow
new file mode 100644
index 0000000..ca19dbb
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/hosts.allow
@@ -0,0 +1,7 @@
+#
+# /etc/hosts.allow
+#
+ALL: 192.168.
+ALL: 10.
+ALL: 127.0.0.1
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/hosts.deny b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/hosts.deny
new file mode 100755
index 0000000..ca30ab4
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/hosts.deny
@@ -0,0 +1,6 @@
+#
+# /etc/hosts.deny
+#
+ALL
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/menu.lst b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/menu.lst
new file mode 100755
index 0000000..ce33757
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/menu.lst
@@ -0,0 +1,60 @@
+# Config file for GRUB - The GNU GRand Unified Bootloader
+# /boot/grub/menu.lst
+
+# DEVICE NAME CONVERSIONS
+#
+# Linux Grub
+# -------------------------
+# /dev/fd0 (fd0)
+# /dev/hda (hd0)
+# /dev/hdb2 (hd1,1)
+# /dev/hda3 (hd0,2)
+#
+
+# FRAMEBUFFER RESOLUTION SETTINGS
+# +-------------------------------------------------+
+# | 640x480 800x600 1024x768 1280x1024
+# ----+--------------------------------------------
+# 256 | 0x301=769 0x303=771 0x305=773 0x307=775
+# 32K | 0x310=784 0x313=787 0x316=790 0x319=793
+# 64K | 0x311=785 0x314=788 0x317=791 0x31A=794
+# 16M | 0x312=786 0x315=789 0x318=792 0x31B=795
+# +-------------------------------------------------+
+
+# general configuration:
+timeout 5
+default 0
+#color light-blue/black light-cyan/blue
+
+# boot sections follow
+# each is implicitly numbered from 0 in the order of appearance below
+#
+# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
+#
+#-*
+hiddenmenu
+
+# (0) normal
+title LinHes
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit console=tty1
+initrd /boot/kernel26.img
+
+# (1) bootsplash
+title LinHes-splashy
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit quiet vga=0x318 splash=silent,theme:darch console=tty1
+initrd /boot/kernel26.img
+
+# (2) noautologin
+title STB-nologin
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit quiet vga=0x318 splash=silent,theme:darch console=tty1 noautologin
+initrd /boot/kernel26.img
+
+
+# (3) normal
+title LinHes-init
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro console=tty1
+initrd /boot/kernel26.img
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/rc.conf b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/rc.conf
new file mode 100755
index 0000000..856b0be
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/rc.conf
@@ -0,0 +1,113 @@
+#
+# /etc/rc.conf - Main Configuration for Arch Linux
+#
+
+#
+# -----------------------------------------------------------------------
+# LOCALIZATION
+# -----------------------------------------------------------------------
+#
+# LOCALE: available languages can be listed with the 'locale -a' command
+# HARDWARECLOCK: set to "UTC" or "localtime"
+# TIMEZONE: timezones are found in /usr/share/zoneinfo
+# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
+# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
+# CONSOLEMAP: found in /usr/share/kbd/consoletrans
+# USECOLOR: use ANSI color sequences in startup messages
+#
+LOCALE="en_US.utf8"
+HARDWARECLOCK="UTC"
+TIMEZONE="US/Central"
+KEYMAP="us"
+CONSOLEFONT=
+CONSOLEMAP=
+USECOLOR="yes"
+
+#
+# -----------------------------------------------------------------------
+# HARDWARE
+# -----------------------------------------------------------------------
+#
+# Scan hardware and load required modules at bootup
+MOD_AUTOLOAD="yes"
+if [ -f /etc/systemconfig ]
+then
+ . /etc/systemconfig
+fi
+
+if [ x$Audiotype = xOSS -a ! -f /tmp/.alsatest ]
+then
+ ALSABLACKLIST="soundcore"
+else
+ if [ x$Audiotype = xOSS ]
+ then
+ ALSABLACKLIST="soundcore"
+ else
+ ALSABLACKLIST=""
+ fi
+fi
+
+# Module Blacklist - modules in this list will never be loaded by udev
+MOD_BLACKLIST=($ALSABLACKLIST)
+#
+# Modules to load at boot-up (in this order)
+# - prefix a module with a ! to blacklist it
+#
+MODULES=()
+# Scan for LVM volume groups at startup, required if you use LVM
+USELVM="no"
+
+#
+# -----------------------------------------------------------------------
+# NETWORKING
+# -----------------------------------------------------------------------
+#
+HOSTNAME=`cat /etc/hostname`
+
+#The following is only used on the install. After the first boot everything is set from /etc/net.
+
+
+#
+# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available
+# interfaces.
+#
+# Interfaces to start at boot-up (in this order)
+# Declare each interface then list in INTERFACES
+# - prefix an entry in INTERFACES with a ! to disable it
+# - no hyphens in your interface names - Bash doesn't like it
+#
+# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
+#
+lo="lo 127.0.0.1"
+#eth0="dhcp"
+INTERFACES=(lo )
+#
+# Routes to start at boot-up (in this order)
+# Declare each route then list in ROUTES
+# - prefix an entry in ROUTES with a ! to disable it
+#
+gateway="default gw 192.168.0.1"
+ROUTES=(!gateway)
+#
+# Enable these network profiles at boot-up. These are only useful
+# if you happen to need multiple network configurations (ie, laptop users)
+# - set to 'menu' to present a menu during boot-up (dialog package required)
+# - prefix an entry with a ! to disable it
+#
+# Network profiles are found in /etc/network-profiles
+#
+#NET_PROFILES=(main)
+
+#
+# -----------------------------------------------------------------------
+# DAEMONS
+# -----------------------------------------------------------------------
+#
+# Daemons to start at boot-up (in this order)
+# - prefix a daemon with a ! to disable it
+# - prefix a daemon with a @ to start it up in the background
+#
+#DAEMONS=(syslog-ng network netfs crond)
+DAEMONS=(!syslog-ng !hotplug !pcmcia network mysqld dbus avahi-daemon)
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/rc.shutdown b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/rc.shutdown
new file mode 100755
index 0000000..1a8cdbe
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/rc.shutdown
@@ -0,0 +1,104 @@
+#!/bin/bash
+#
+# /etc/rc.shutdown
+#
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+# avoid staircase effect
+/bin/stty onlcr
+
+echo " "
+printhl "Initiating Shutdown..."
+echo " "
+
+if [ -x /etc/rc.local.shutdown ]; then
+ /etc/rc.local.shutdown
+fi
+
+if [ "$PREVLEVEL" = "3" -o "$PREVLEVEL" = "5" ]; then
+ # Shutdown daemons
+ let i=${#DAEMONS[@]}
+ while [[ i -ge 0 ]]; do
+ if [[ `echo ${DAEMONS[$i]} | grep '^[^\!]' | wc -l` -eq 1 ]]; then
+ /etc/rc.d/${DAEMONS[$i]#@} stop
+ fi
+ let i=i-1
+ done
+ # find any leftover daemons and shut them down
+ if [ -d /var/run/daemons ]; then
+ for daemon in `ls /var/run/daemons`; do
+ /etc/rc.d/$daemon stop
+ done
+ fi
+fi
+
+# Terminate all processes
+stat_busy "Sending SIGTERM To Processes"
+/sbin/killall5 -15 &> /dev/null
+/bin/sleep 5
+stat_done
+
+stat_busy "Sending SIGKILL To Processes"
+/sbin/killall5 -9 &> /dev/null
+/bin/sleep 1
+stat_done
+
+stat_busy "Saving Random Seed"
+/bin/dd if=/dev/urandom of=/var/run/random-seed count=1 bs=512 2> /dev/null
+stat_done
+
+stat_busy "Saving System Clock"
+if [ "$HARDWARECLOCK" = "UTC" ]; then
+ /sbin/hwclock --directisa --utc --systohc
+else
+ /sbin/hwclock --directisa --localtime --systohc
+fi
+stat_done
+
+# removing psmouse module to fix some reboot issues on newer laptops
+modprobe -r psmouse >/dev/null 2>&1
+
+# Write to wtmp file before unmounting
+/sbin/halt -w
+
+stat_busy "Deactivating Swap"
+/sbin/swapoff -a
+stat_done
+
+stat_busy "Unmounting Filesystems"
+/bin/umount -a
+stat_done
+
+if [ "$USELVM" = "yes" -o "$USELVM" = "YES" ]; then
+ if [ -d /etc/lvm -a -x /sbin/lvm ]; then
+ /bin/mount -n -t sysfs none /sys 2>/dev/null
+ if [ -d /sys/block ]; then
+ stat_busy "Deactivating LVM2 groups"
+ /sbin/lvm vgchange --ignorelockingfailure -a n
+ stat_done
+ umount /sys
+ fi
+ fi
+fi
+
+stat_busy "Remounting Root Filesystem Read-only"
+/bin/mount -n -o remount,ro /
+stat_done
+exit 0
+# Power off or reboot
+if [ "$RUNLEVEL" = "0" ]; then
+ printsep
+ printhl "${C_H2}POWER OFF"
+ /sbin/poweroff -d -f -h -i
+else
+ printsep
+ printhl "${C_H2}REBOOTING"
+ # adding kexec support
+ [ -x /usr/sbin/kexec ] && /usr/sbin/kexec -e > /dev/null 2>&1
+ /sbin/reboot -d -f -i
+fi
+
+# End of file
+# vim: set ts=2 noet:
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/tweak.sh b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/tweak.sh
new file mode 100755
index 0000000..5c73cf4
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/post_process/tweak.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+useradd -m -s /bin/bash mythtv -G audio,video,optical,storage,users
+echo 'setting mythtv password to "a" '
+passwd mythtv <<EOF
+a
+a
+EOF
+
+echo 'setting root password to "a" '
+passwd root <<EOF
+a
+a
+EOF
+
+#edit /home/mythtv/.xinitrc and uncomment exec fluxbox
+cp -rvpf /.tweak/home/mythtv /home/
+
+
+
+chown -R mythtv.mythtv /home/mythtv/
+
+
+
+cp -f /.tweak/hosts.allow /etc/hosts.allow
+cp -f /.tweak/securetty /etc/securetty
+cp -f /.tweak/rc.conf /etc/rc.conf
+#cp -f rc.local /etc/rc.local
+#cp -f locale.gen /etc/locale.gen
+
+cp -f /.tweak/rc.shutdown /etc/rc.shutdown
+cp -f /.tweak/menu.lst /boot/grub/menu.lst
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/pre-process.sh b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/pre-process.sh
new file mode 100755
index 0000000..5bc1f9c
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/pre-process.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+rm -f overlay.xpk
+if [ -d overlay/home/mythtv ]
+then
+ chown -R 1000 overlay/home/mythtv
+fi
+./create_overlay.sh
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rcconfx b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rcconfx
new file mode 100644
index 0000000..23e671e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rcconfx
@@ -0,0 +1,19 @@
+#
+# patch file for /etc/rc.conf
+#
+
+LOCALE="en_US.utf8"
+HARDWARECLOCK="UTC"
+TIMEZONE="UTC"
+KEYMAP="us"
+
+MODULES=(floppy)
+
+HOSTNAME="larch5"
+
+USELVM="yes"
+
+#eth0="dhcp"
+
+DAEMONS=(syslog-ng network mysqld dbus hal !slim sshd)
+SPLASH="splashy"
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/X11/xinit/startx.custom b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/X11/xinit/startx.custom
new file mode 100644
index 0000000..8e3ec5e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/X11/xinit/startx.custom
@@ -0,0 +1,22 @@
+if grep -v nox /proc/cmdline &>/dev/null && \
+ [ -z "$DISPLAY" ] && echo $(tty) | grep /vc/1 &>/dev/null; then
+ if grep i810 /proc/cmdline &>/dev/null; then
+ startx -- -config xorg.conf.i810
+ else
+ startx
+ fi
+
+ # Maybe there should be some code here to handle a failed startx?
+
+ # The 'return' value is at /tmp/xlogout
+ # If there is nothing there, switch user to 'newuser'
+ # If there is also nothing there, login as root
+ # - if already root, fall through to terminal
+
+ if [ -f /tmp/xlogout ] || [ -f /tmp/newuser ]; then
+ logout
+ elif [ ${UID} -ne 0 ]; then
+ echo "root" >/tmp/newuser
+ logout
+ fi
+fi
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/X11/xinit/xinitrc.custom b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/X11/xinit/xinitrc.custom
new file mode 100644
index 0000000..5f04171
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/X11/xinit/xinitrc.custom
@@ -0,0 +1,4 @@
+# Set the keymap
+xkmap-set
+
+exec fluxbox
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/X11/xorg.conf b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/X11/xorg.conf
new file mode 100644
index 0000000..6d11b2e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/X11/xorg.conf
@@ -0,0 +1,49 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ Identifier "Card0"
+ Driver "vesa"
+EndSection
+
+Section "Monitor"
+ Identifier "Monitor0"
+ HorizSync 30.0 - 65.0
+ VertRefresh 50.0 - 75.0
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ DefaultDepth 16
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ Modes "1024x768" "800x600"
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/X11/xorg.conf.i810 b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/X11/xorg.conf.i810
new file mode 100644
index 0000000..9615569
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/X11/xorg.conf.i810
@@ -0,0 +1,59 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ ### Available Driver options are:-
+ ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
+ ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
+ ### [arg]: arg optional
+ #Option "NoAccel" # [<bool>]
+ #Option "SWcursor" # [<bool>]
+ #Option "ColorKey" # <i>
+ #Option "CacheLines" # <i>
+ #Option "Dac6Bit" # [<bool>]
+ #Option "DRI" # [<bool>]
+ #Option "NoDDC" # [<bool>]
+ #Option "ShowCache" # [<bool>]
+ #Option "XvMCSurfaces" # <i>
+ #Option "PageFlip" # [<bool>]
+ Option "DRI" "False"
+ #Option "AccelMethod" "exa"
+ #Option "MigrationHeuristic" "greedy"
+ #Option "ExaNoComposite" "False"
+ Identifier "Card0"
+ Driver "intel"
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/X11/xorg.conf.i810.2 b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/X11/xorg.conf.i810.2
new file mode 100644
index 0000000..a295b38
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/X11/xorg.conf.i810.2
@@ -0,0 +1,67 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ ### Available Driver options are:-
+ ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
+ ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
+ ### [arg]: arg optional
+ #Option "NoAccel" # [<bool>]
+ #Option "SWcursor" # [<bool>]
+ #Option "ColorKey" # <i>
+ #Option "CacheLines" # <i>
+ #Option "Dac6Bit" # [<bool>]
+ #Option "DRI" # [<bool>]
+ #Option "NoDDC" # [<bool>]
+ #Option "ShowCache" # [<bool>]
+ #Option "XvMCSurfaces" # <i>
+ #Option "PageFlip" # [<bool>]
+ Option "DRI" "False"
+ #Option "AccelMethod" "exa"
+ #Option "MigrationHeuristic" "greedy"
+ #Option "ExaNoComposite" "False"
+ Identifier "Card0"
+ Driver "intel"
+EndSection
+
+Section "Monitor"
+ Identifier "Monitor0"
+ HorizSync 30.0 - 65.0
+ VertRefresh 50.0 - 75.0
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ DefaultDepth 16
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ Modes "1024x768" "800x600"
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/X11/xorg.conf.vesa b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/X11/xorg.conf.vesa
new file mode 100644
index 0000000..6d11b2e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/X11/xorg.conf.vesa
@@ -0,0 +1,49 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ Identifier "Card0"
+ Driver "vesa"
+EndSection
+
+Section "Monitor"
+ Identifier "Monitor0"
+ HorizSync 30.0 - 65.0
+ VertRefresh 50.0 - 75.0
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ DefaultDepth 16
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ Modes "1024x768" "800x600"
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/conf.d/dhcpcd b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/conf.d/dhcpcd
new file mode 100644
index 0000000..ab53c30
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/conf.d/dhcpcd
@@ -0,0 +1,6 @@
+#
+# Arguments to be passed to the DHCP client daemon
+#
+
+DHCPCD_ARGS="-t 10 -h $HOSTNAME"
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/hosts.allow b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/hosts.allow
new file mode 100644
index 0000000..19bc4d8
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/hosts.allow
@@ -0,0 +1,13 @@
+#
+# /etc/hosts.allow
+#
+
+ALL: 127.0.0.1
+
+# To allow ssh in from anywhere
+sshd: ALL
+
+# To allow ssh in from local net (example)
+#sshd: 192.168.178.0/255.255.255.0
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/inittab b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/inittab
new file mode 100644
index 0000000..2de483f
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/inittab
@@ -0,0 +1,43 @@
+#
+# /etc/inittab
+#
+
+# Runlevels:
+# 0 Halt
+# 1(S) Single-user
+# 2 Not used
+# 3 Multi-user
+# 4 Not used
+# 5 X11
+# 6 Reboot
+
+## Only one of the following two lines can be uncommented!
+# Boot to console
+id:5:initdefault:
+# Boot to X11
+#id:5:initdefault:
+
+rc::sysinit:/etc/rc.sysinit
+rs:S1:wait:/etc/rc.single
+rm:2345:wait:/etc/rc.multi
+rh:06:wait:/etc/rc.shutdown
+su:S:wait:/sbin/sulogin -p
+
+# -8 options fixes umlauts problem on login
+c1:2345:respawn:/sbin/agetty -8 38400 vc/1 linux -n -l /etc/ulogin
+c2:2345:respawn:/sbin/agetty -8 38400 vc/2 linux
+c3:2345:respawn:/sbin/agetty -8 38400 vc/3 linux
+c4:2345:respawn:/sbin/agetty -8 38400 vc/4 linux
+c5:2345:respawn:/sbin/agetty -8 38400 vc/5 linux
+c6:2345:respawn:/sbin/agetty -8 38400 vc/6 linux
+c7:5:respawn:/usr/bin/openvt -fwc 6 -- /bin/su - mythtv -c /usr/bin/startx >& /dev/null
+
+ca::ctrlaltdel:/sbin/shutdown -t3 -r now
+
+# Example lines for starting a login manager
+#x:5:respawn:/usr/bin/xdm -nodaemon
+#x:5:respawn:/usr/sbin/gdm -nodaemon
+#x:5:respawn:/opt/kde/bin/kdm -nodaemon
+#x:5:respawn:/usr/bin/slim >& /dev/null
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/inittab.larchsave b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/inittab.larchsave
new file mode 100644
index 0000000..2de483f
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/inittab.larchsave
@@ -0,0 +1,43 @@
+#
+# /etc/inittab
+#
+
+# Runlevels:
+# 0 Halt
+# 1(S) Single-user
+# 2 Not used
+# 3 Multi-user
+# 4 Not used
+# 5 X11
+# 6 Reboot
+
+## Only one of the following two lines can be uncommented!
+# Boot to console
+id:5:initdefault:
+# Boot to X11
+#id:5:initdefault:
+
+rc::sysinit:/etc/rc.sysinit
+rs:S1:wait:/etc/rc.single
+rm:2345:wait:/etc/rc.multi
+rh:06:wait:/etc/rc.shutdown
+su:S:wait:/sbin/sulogin -p
+
+# -8 options fixes umlauts problem on login
+c1:2345:respawn:/sbin/agetty -8 38400 vc/1 linux -n -l /etc/ulogin
+c2:2345:respawn:/sbin/agetty -8 38400 vc/2 linux
+c3:2345:respawn:/sbin/agetty -8 38400 vc/3 linux
+c4:2345:respawn:/sbin/agetty -8 38400 vc/4 linux
+c5:2345:respawn:/sbin/agetty -8 38400 vc/5 linux
+c6:2345:respawn:/sbin/agetty -8 38400 vc/6 linux
+c7:5:respawn:/usr/bin/openvt -fwc 6 -- /bin/su - mythtv -c /usr/bin/startx >& /dev/null
+
+ca::ctrlaltdel:/sbin/shutdown -t3 -r now
+
+# Example lines for starting a login manager
+#x:5:respawn:/usr/bin/xdm -nodaemon
+#x:5:respawn:/usr/sbin/gdm -nodaemon
+#x:5:respawn:/opt/kde/bin/kdm -nodaemon
+#x:5:respawn:/usr/bin/slim >& /dev/null
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/larch-shutdown b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/larch-shutdown
new file mode 100644
index 0000000..d614d4b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/larch-shutdown
@@ -0,0 +1,47 @@
+# Functions used by rc.shutdown
+# Modified versions for larch live systems
+
+f_saveclock ()
+{
+ :
+}
+
+f_swapoff ()
+{
+ ############################# Include session saving functions
+ # . /opt/larch-live/session-save/shutdown2
+ # if [ -f /tmp/checkse ]; then
+ # . /tmp/checkse
+ #else
+ # checkse
+ # fi
+
+ if [ -n "${saving}" ] && ! session_save; then
+ echo
+ echo "If you know what you are doing, you may be able to recover"
+ echo "something from this unpleasant situation."
+ echo
+ echo "You may use the command line to investigate further ..."
+ echo
+ echo "When finished please enter 'exit', the shutdown process will"
+ echo "then continue."
+ sh -i
+ fi
+
+ #############################
+
+ stat_busy "Deactivating Swap"
+ /sbin/swapoff -a
+ stat_done
+}
+
+f_remountro ()
+{
+ if [ -n "${ejectdev}" ]; then
+ echo "Ejecting live CD"
+ eject ${ejectdev}
+ echo "sleeping for 6 seconds"
+ sleep 6
+
+ fi
+}
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/ppp/options b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/ppp/options
new file mode 100644
index 0000000..237c390
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/ppp/options
@@ -0,0 +1,352 @@
+# /etc/ppp/options
+#
+# Originally created by Jim Knoble <jmknoble@mercury.interpath.net>
+# Modified for Debian by alvar Bray <alvar@meiko.co.uk>
+# Modified for PPP Server setup by Christoph Lameter <clameter@debian.org>
+# Modified for ArchLinux by Manolis Tzanidakis <manolis@archlinux.org>
+#
+# To quickly see what options are active in this file, use this command:
+# egrep -v '#|^ *$' /etc/ppp/options
+
+# Specify which DNS Servers the incoming Win95 or WinNT Connection should use
+# Two Servers can be remotely configured
+# ms-dns 192.168.1.1
+# ms-dns 192.168.1.2
+
+# Specify which WINS Servers the incoming connection Win95 or WinNT should use
+# ms-wins 192.168.1.50
+# ms-wins 192.168.1.51
+
+# Run the executable or shell command specified after pppd has
+# terminated the link. This script could, for example, issue commands
+# to the modem to cause it to hang up if hardware modem control signals
+# were not available.
+#disconnect "chat -- \d+++\d\c OK ath0 OK"
+
+# async character map -- 32-bit hex; each bit is a character
+# that needs to be escaped for pppd to receive it. 0x00000001
+# represents '\x01', and 0x80000000 represents '\x1f'.
+asyncmap 0
+
+# Require the peer to authenticate itself before allowing network
+# packets to be sent or received.
+# Please do not disable this setting. It is expected to be standard in
+# future releases of pppd. Use the call option (see manpage) to disable
+# authentication for specific peers.
+#auth
+
+# Use hardware flow control (i.e. RTS/CTS) to control the flow of data
+# on the serial port.
+crtscts
+
+# Use software flow control (i.e. XON/XOFF) to control the flow of data
+# on the serial port.
+#xonxoff
+
+# Specifies that certain characters should be escaped on transmission
+# (regardless of whether the peer requests them to be escaped with its
+# async control character map). The characters to be escaped are
+# specified as a list of hex numbers separated by commas. Note that
+# almost any character can be specified for the escape option, unlike
+# the asyncmap option which only allows control characters to be
+# specified. The characters which may not be escaped are those with hex
+# values 0x20 - 0x3f or 0x5e.
+#escape 11,13,ff
+
+# Don't use the modem control lines.
+#local
+
+# Specifies that pppd should use a UUCP-style lock on the serial device
+# to ensure exclusive access to the device.
+lock
+
+# Don't show the passwords when logging the contents of PAP packets.
+# This is the default.
+hide-password
+
+# When logging the contents of PAP packets, this option causes pppd to
+# show the password string in the log message.
+#show-password
+
+# Use the modem control lines. On Ultrix, this option implies hardware
+# flow control, as for the crtscts option. (This option is not fully
+# implemented.)
+modem
+
+# Set the MRU [Maximum Receive Unit] value to <n> for negotiation. pppd
+# will ask the peer to send packets of no more than <n> bytes. The
+# minimum MRU value is 128. The default MRU value is 1500. A value of
+# 296 is recommended for slow links (40 bytes for TCP/IP header + 256
+# bytes of data).
+#mru 542
+
+# Set the interface netmask to <n>, a 32 bit netmask in "decimal dot"
+# notation (e.g. 255.255.255.0).
+#netmask 255.255.255.0
+
+# Disables the default behaviour when no local IP address is specified,
+# which is to determine (if possible) the local IP address from the
+# hostname. With this option, the peer will have to supply the local IP
+# address during IPCP negotiation (unless it specified explicitly on the
+# command line or in an options file).
+#noipdefault
+
+# Enables the "passive" option in the LCP. With this option, pppd will
+# attempt to initiate a connection; if no reply is received from the
+# peer, pppd will then just wait passively for a valid LCP packet from
+# the peer (instead of exiting, as it does without this option).
+#passive
+
+# With this option, pppd will not transmit LCP packets to initiate a
+# connection until a valid LCP packet is received from the peer (as for
+# the "passive" option with old versions of pppd).
+#silent
+
+# Don't request or allow negotiation of any options for LCP and IPCP
+# (use default values).
+#-all
+
+# Disable Address/Control compression negotiation (use default, i.e.
+# address/control field disabled).
+#-ac
+
+# Disable asyncmap negotiation (use the default asyncmap, i.e. escape
+# all control characters).
+#-am
+
+# Don't fork to become a background process (otherwise pppd will do so
+# if a serial device is specified).
+#-detach
+
+# Disable IP address negotiation (with this option, the remote IP
+# address must be specified with an option on the command line or in
+# an options file).
+#-ip
+
+# Disable IPCP negotiation and IP communication. This option should
+# only be required if the peer is buggy and gets confused by requests
+# from pppd for IPCP negotiation.
+#noip
+
+# Disable magic number negotiation. With this option, pppd cannot
+# detect a looped-back line.
+#-mn
+
+# Disable MRU [Maximum Receive Unit] negotiation (use default, i.e.
+# 1500).
+#-mru
+
+# Disable protocol field compression negotiation (use default, i.e.
+# protocol field compression disabled).
+#-pc
+
+# Require the peer to authenticate itself using PAP.
+#+pap
+
+# Don't agree to authenticate using PAP.
+#-pap
+
+# Require the peer to authenticate itself using CHAP [Cryptographic
+# Handshake Authentication Protocol] authentication.
+#+chap
+
+# Don't agree to authenticate using CHAP.
+#-chap
+
+# Disable negotiation of Van Jacobson style IP header compression (use
+# default, i.e. no compression).
+#-vj
+
+# Increase debugging level (same as -d). If this option is given, pppd
+# will log the contents of all control packets sent or received in a
+# readable form. The packets are logged through syslog with facility
+# daemon and level debug. This information can be directed to a file by
+# setting up /etc/syslog.conf appropriately (see syslog.conf(5)). (If
+# pppd is compiled with extra debugging enabled, it will log messages
+# using facility local2 instead of daemon).
+#debug
+
+# Append the domain name <d> to the local host name for authentication
+# purposes. For example, if gethostname() returns the name porsche,
+# but the fully qualified domain name is porsche.Quotron.COM, you would
+# use the domain option to set the domain name to Quotron.COM.
+#domain <d>
+
+# Enable debugging code in the kernel-level PPP driver. The argument n
+# is a number which is the sum of the following values: 1 to enable
+# general debug messages, 2 to request that the contents of received
+# packets be printed, and 4 to request that the contents of transmitted
+# packets be printed.
+#kdebug n
+
+# Set the MTU [Maximum Transmit Unit] value to <n>. Unless the peer
+# requests a smaller value via MRU negotiation, pppd will request that
+# the kernel networking code send data packets of no more than n bytes
+# through the PPP network interface.
+#mtu <n>
+
+# Set the name of the local system for authentication purposes to <n>.
+# This is a privileged option. With this option, pppd will use lines in the
+# secrets files which have <n> as the second field when looking for a
+# secret to use in authenticating the peer. In addition, unless overridden
+# with the user option, <n> will be used as the name to send to the peer
+# when authenticating the local system to the peer. (Note that pppd does
+# not append the domain name to <n>.)
+#name <n>
+
+# Enforce the use of the hostname as the name of the local system for
+# authentication purposes (overrides the name option).
+#usehostname
+
+# Set the assumed name of the remote system for authentication purposes
+# to <n>.
+#remotename <n>
+
+# Add an entry to this system's ARP [Address Resolution Protocol]
+# table with the IP address of the peer and the Ethernet address of this
+# system.
+proxyarp
+
+# Use the system password database for authenticating the peer using
+# PAP. Note: mgetty already provides this option. If this is specified
+# then dialin from users using a script under Linux to fire up ppp wont work.
+# login
+
+# If this option is given, pppd will send an LCP echo-request frame to the
+# peer every n seconds. Normally the peer should respond to the echo-request
+# by sending an echo-reply. This option can be used with the
+# lcp-echo-failure option to detect that the peer is no longer connected.
+lcp-echo-interval 30
+
+# If this option is given, pppd will presume the peer to be dead if n
+# LCP echo-requests are sent without receiving a valid LCP echo-reply.
+# If this happens, pppd will terminate the connection. Use of this
+# option requires a non-zero value for the lcp-echo-interval parameter.
+# This option can be used to enable pppd to terminate after the physical
+# connection has been broken (e.g., the modem has hung up) in
+# situations where no hardware modem control lines are available.
+lcp-echo-failure 4
+
+# Set the LCP restart interval (retransmission timeout) to <n> seconds
+# (default 3).
+#lcp-restart <n>
+
+# Set the maximum number of LCP terminate-request transmissions to <n>
+# (default 3).
+#lcp-max-terminate <n>
+
+# Set the maximum number of LCP configure-request transmissions to <n>
+# (default 10).
+#lcp-max-configure <n>
+
+# Set the maximum number of LCP configure-NAKs returned before starting
+# to send configure-Rejects instead to <n> (default 10).
+#lcp-max-failure <n>
+
+# Set the IPCP restart interval (retransmission timeout) to <n>
+# seconds (default 3).
+#ipcp-restart <n>
+
+# Set the maximum number of IPCP terminate-request transmissions to <n>
+# (default 3).
+#ipcp-max-terminate <n>
+
+# Set the maximum number of IPCP configure-request transmissions to <n>
+# (default 10).
+#ipcp-max-configure <n>
+
+# Set the maximum number of IPCP configure-NAKs returned before starting
+# to send configure-Rejects instead to <n> (default 10).
+#ipcp-max-failure <n>
+
+# Set the PAP restart interval (retransmission timeout) to <n> seconds
+# (default 3).
+#pap-restart <n>
+
+# Set the maximum number of PAP authenticate-request transmissions to
+# <n> (default 10).
+#pap-max-authreq <n>
+
+# Set the maximum time that pppd will wait for the peer to authenticate
+# itself with PAP to <n> seconds (0 means no limit).
+#pap-timeout <n>
+
+# Set the CHAP restart interval (retransmission timeout for
+# challenges) to <n> seconds (default 3).
+#chap-restart <n>
+
+# Set the maximum number of CHAP challenge transmissions to <n>
+# (default 10).
+#chap-max-challenge
+
+# If this option is given, pppd will rechallenge the peer every <n>
+# seconds.
+#chap-interval <n>
+
+# With this option, pppd will accept the peer's idea of our local IP
+# address, even if the local IP address was specified in an option.
+#ipcp-accept-local
+
+# With this option, pppd will accept the peer's idea of its (remote) IP
+# address, even if the remote IP address was specified in an option.
+#ipcp-accept-remote
+
+# Disable the IPXCP and IPX protocols.
+# To let pppd pass IPX packets comment this out --- you'll probably also
+# want to install ipxripd, and have the Internal IPX Network option enabled
+# in your kernel. /usr/doc/HOWTO/IPX-HOWTO.gz contains more info.
+noipx
+
+# Exit once a connection has been made and terminated. This is the default,
+# unless the `persist' or `demand' option has been specified.
+#nopersist
+
+# Do not exit after a connection is terminated; instead try to reopen
+# the connection.
+#persist
+
+# Terminate after n consecutive failed connection attempts.
+# A value of 0 means no limit. The default value is 10.
+#maxfail <n>
+
+# Initiate the link only on demand, i.e. when data traffic is present.
+# With this option, the remote IP address must be specified by the user on
+# the command line or in an options file. Pppd will initially configure
+# the interface and enable it for IP traffic without connecting to the peer.
+# When traffic is available, pppd will connect to the peer and perform
+# negotiation, authentication, etc. When this is completed, pppd will
+# commence passing data packets (i.e., IP packets) across the link.
+#demand
+
+# Specifies that pppd should disconnect if the link is idle for <n> seconds.
+# The link is idle when no data packets (i.e. IP packets) are being sent or
+# received. Note: it is not advisable to use this option with the persist
+# option without the demand option. If the active-filter option is given,
+# data packets which are rejected by the specified activity filter also
+# count as the link being idle.
+#idle <n>
+
+# Specifies how many seconds to wait before re-initiating the link after
+# it terminates. This option only has any effect if the persist or demand
+# option is used. The holdoff period is not applied if the link was
+# terminated because it was idle.
+#holdoff <n>
+
+# Wait for up n milliseconds after the connect script finishes for a valid
+# PPP packet from the peer. At the end of this time, or when a valid PPP
+# packet is received from the peer, pppd will commence negotiation by
+# sending its first LCP packet. The default value is 1000 (1 second).
+# This wait period only applies if the connect or pty option is used.
+#connect-delay <n>
+
+# Packet filtering: for more information, see pppd(8)
+# Any packets matching the filter expression will be interpreted as link
+# activity, and will cause a "demand" connection to be activated, and reset
+# the idle connection timer. (idle option)
+# The filter expression is akin to that of tcpdump(1)
+#active-filter <filter-expression>
+
+# uncomment the line below this if you use PPPoE
+#plugin /usr/lib/pppd/plugins/pppoe.so
+
+# ---<End of File>---
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/rc.local b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/rc.local
new file mode 100755
index 0000000..216ec8e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/rc.local
@@ -0,0 +1,16 @@
+#!/bin/bash
+#
+# /etc/rc.local: Local multi-user startup script.
+#
+
+#install initial database
+pacman -S --noconfirm mythdb-initial 2>/dev/null
+
+# Set up automatically logged in user (larch live system only)
+if [ -f /.livesys/autologin ]; then
+ cp /.livesys/autologin /tmp/newuser
+fi
+
+# Restore saved sound volume, etc.
+#alsactl restore
+#install initial database
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/rc.local.orig b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/rc.local.orig
new file mode 100755
index 0000000..47b24ef
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/rc.local.orig
@@ -0,0 +1,7 @@
+#!/bin/bash
+#
+# /etc/rc.local: Local multi-user startup script.
+#
+
+# Restore saved sound volume, etc.
+alsactl restore
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/rc.local.shutdown b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/rc.local.shutdown
new file mode 100755
index 0000000..2b5f735
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/rc.local.shutdown
@@ -0,0 +1,7 @@
+#!/bin/bash
+#
+# /etc/rc.local.shutdown: Local shutdown script.
+#
+
+# Save sound volume, etc.
+alsactl store
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/skel/.bash_profile b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/skel/.bash_profile
new file mode 100644
index 0000000..600bd9b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/skel/.bash_profile
@@ -0,0 +1,3 @@
+. $HOME/.bashrc
+
+. /etc/X11/xinit/startx.custom
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/skel/.bashrc b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/skel/.bashrc
new file mode 100644
index 0000000..fcabce0
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/skel/.bashrc
@@ -0,0 +1,3 @@
+alias ls='ls --color=auto'
+PS1='[\u@\h \W]\$ '
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/skel/.xinitrc b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/skel/.xinitrc
new file mode 100644
index 0000000..c6febe5
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/skel/.xinitrc
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+#
+# ~/.xinitrc
+#
+# Executed by startx (run your window manager from here)
+#
+
+# exec gnome-session
+# exec startkde
+# exec startxfce4
+# exec icewm
+# exec openbox
+# exec blackbox
+exec fluxbox
+# exec ratpoison
+# exec dwm
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/skel/.xsession b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/skel/.xsession
new file mode 100755
index 0000000..a16dc0b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/skel/.xsession
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+#
+# ~/.xsession
+#
+# Executed by xdm/gdm/kdm at login
+#
+
+/bin/bash --login -i ~/.xinitrc
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/slim.conf b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/slim.conf
new file mode 100644
index 0000000..35ed579
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local-httpd/rootoverlay/etc/slim.conf
@@ -0,0 +1,79 @@
+# Path, X server and arguments (if needed)
+# Note: -xauth $authfile is automatically appended
+default_path ./:/bin:/usr/bin:/usr/local/bin:/usr/bin
+default_xserver /usr/bin/X
+xserver_arguments -nolisten tcp vt07
+
+# Commands for halt, login, etc.
+halt_cmd /sbin/shutdown -h now
+reboot_cmd /sbin/shutdown -r now
+console_cmd /usr/bin/terminal -x /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
+#suspend_cmd /usr/sbin/suspend
+
+# Full path to the xauth binary
+xauth_path /usr/bin/xauth
+
+# Xauth file for server
+authfile /var/run/slim.auth
+
+
+# Activate numlock when slim starts. Valid values: on|off
+# numlock on
+
+# Hide the mouse cursor (note: does not work with some WMs).
+# Valid values: true|false
+# hidecursor false
+
+# This command is executed after a succesful login.
+# you can place the %session and %theme variables
+# to handle launching of specific commands in .xinitrc
+# depending of chosen session and slim theme
+#
+# NOTE: if your system does not have bash you need
+# to adjust the command according to your preferred shell,
+# i.e. for freebsd use:
+# login_cmd exec /bin/sh - ~/.xinitrc %session
+login_cmd exec /bin/bash -login ~/.xinitrc %session
+
+# Commands executed when starting and exiting a session.
+# They can be used for registering a X11 session with
+# sessreg. You can use the %user variable
+#
+# sessionstart_cmd some command
+# sessionstop_cmd some command
+
+# Start in daemon mode. Valid values: yes | no
+# Note that this can overridden by the command line
+# option "-d"
+# daemon yes
+
+# Available sessions (first one is the default).
+# The current chosen session name is replaced in the login_cmd
+# above, so your login command can handle different sessions.
+# see the xinitrc.sample file shipped with slim sources
+sessions xfce4,icewm,wmaker,blackbox
+
+# Executed when pressing F11 (requires imagemagick)
+screenshot_cmd import -window root /slim.png
+
+# welcome message. Available variables: %host, %domain
+welcome_msg Welcome to %host
+
+# shutdown / reboot messages
+shutdown_msg The system is halting...
+reboot_msg The system is rebooting...
+
+# default user, leave blank or remove this line
+# for avoid pre-loading the username.
+#default_user simone
+
+# current theme, use comma separated list to specify a set to
+# randomly choose from
+current_theme dlarch
+
+# Lock file
+lockfile /var/lock/slim.lock
+
+# Log file
+logfile /var/log/slim.log
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/addedpacks b/build_tools/clarch/larch/profiles/i686-testing-local/addedpacks
new file mode 100644
index 0000000..6668d64
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/addedpacks
@@ -0,0 +1,170 @@
+# These are needed to build a live CD
+linhes-live
+squashfs-tools
+lzop
+
+syslinux
+
+# You need a kernel.
+#kernel26 is now in 'base'
+aufs
+
+# To eject a cd
+eject
+
+# Useful for use as installer, etc.
+#ntfsprogs
+#parted
+
+#ddcxinfo-knoppix
+#hwd
+
+sudo
+
+lsof
+cdrkit
+dvd+rw-tools
+
+# Needed by the installer
+#python
+
+#base-devel
+#larch
+
+# generally useful tools which don't require X
+#mtools is required by syslinux
+openssh
+dosfstools
+alsa-lib
+alsa-oss
+alsa-utils
+cdparanoia
+cdrdao
+
+# Xorg packages
+xorg-server
+xorg-xkb-utils
+xorg-xauth
+xorg-server-utils
+xorg-xinit
+xorg-input-drivers
+xterm
+xorg-fonts-100dpi
+xorg-fonts-75dpi
+xorg-res-utils
+
+#xorg-video-drivers
+xf86-video-amd
+xf86-video-apm
+xf86-video-ark
+xf86-video-ati
+xf86-video-chips
+xf86-video-cirrus
+xf86-video-dummy
+xf86-video-fbdev
+xf86-video-glint
+xf86-video-i128
+xf86-video-i740
+#xf86-video-i810
+xf86-video-imstt
+xf86-video-intel
+xf86-video-mga
+xf86-video-neomagic
+xf86-video-nv
+xf86-video-radeonhd
+xf86-video-rendition
+xf86-video-s3
+xf86-video-s3virge
+xf86-video-savage
+xf86-video-siliconmotion
+xf86-video-sis
+xf86-video-sisusb
+#xf86-video-tdfx
+xf86-video-trident
+xf86-video-tseng
+xf86-video-unichrome
+xf86-video-v4l
+xf86-video-vesa
+xf86-video-vga
+#xf86-video-via
+xf86-video-vmware
+xf86-video-voodoo
+
+# X apps
+#luser
+#localed
+
+#xkmap
+
+#gparted
+#larchin
+
+#mythtv
+mythtv
+mytharchive
+mythbrowser
+mythcontrols
+mythflix
+mythgallery
+mythgame
+mythmusic
+mythphone
+myththemes
+mythweather
+mythweb
+mythvideo
+nuvexport
+lirc
+lirc-utils
+mysql
+xmltv
+esd
+
+#Window Manager
+fluxbox
+feh
+
+#Other
+dbus
+hal
+fftw2
+libcdaudio
+iptables
+pkgconfig
+taglib
+
+#MythVantage Installer deps
+bc
+mysql-python
+expect
+curl
+dnsutils
+
+#Wireless
+b43-fwcutter
+ipw2100-fw
+ipw2200-fw
+ipw3945
+ipw3945-ucode
+ipw3945d
+iwlwifi-3945-ucode
+iwlwifi-4965-ucode
+madwifi
+madwifi-utils
+ndiswrapper
+ndiswrapper-utils
+netcfg
+rt2500
+rt2x00-rt61-fw
+rt2x00-rt71w-fw
+tiacx
+tiacx-firmware
+wireless_tools
+wlan-ng26
+wlan-ng26-utils
+zd1211-firmware
+
+#----
+live-installer
+etcnet
+runit
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/cache_packs b/build_tools/clarch/larch/profiles/i686-testing-local/cache_packs
new file mode 100644
index 0000000..b95e6f4
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/cache_packs
@@ -0,0 +1 @@
+mythdb-initial
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/cd-root/isolinux/isolinux.cfg b/build_tools/clarch/larch/profiles/i686-testing-local/cd-root/isolinux/isolinux.cfg
new file mode 100644
index 0000000..26a365a
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/cd-root/isolinux/isolinux.cfg
@@ -0,0 +1,49 @@
+default vesamenu.c32
+prompt 0
+timeout 50
+
+MENU BACKGROUND vbg.jpg
+MENU COLOR border 31;40 #90ffff00 #00000000 std
+MENU COLOR sel 31;47 #00000000 #FFFFFF15 al
+
+MENU TITLE LinHES: The Linux Home Entertainment System
+
+label linux
+MENU LABEL LinHES with Splashy (default).
+kernel vmlinuz
+append initrd=larch.img vga=791 quiet splash
+
+label linux-nosplash
+MENU LABEL LinHES without splash screen.
+kernel vmlinuz
+append initrd=larch.img
+
+label linux-splash
+MENU LABEL LinHES with splash screen.
+kernel vmlinuz
+append initrd=larch.img vga=791 quiet splash
+
+label linux-i810
+MENU LABEL with Intel i810 driver (DRI disabled)
+kernel vmlinuz
+append initrd=larch.img i810
+
+label linux-nox
+MENU LABEL Boot to console (without X windowing)
+kernel vmlinuz
+append initrd=larch.img 3
+
+label linux-c2r
+MENU LABEL LinHES: copy-to-ram (also activates swap)
+kernel vmlinuz
+append initrd=larch.img c2r
+
+label linux-swap
+MENU LABEL LinHES: Use swap
+kernel vmlinuz
+append initrd=larch.img swap
+
+
+label memtest
+MENU LABEL Memory tester
+kernel memtest
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/cd-root/isolinux/vbg.jpg b/build_tools/clarch/larch/profiles/i686-testing-local/cd-root/isolinux/vbg.jpg
new file mode 100644
index 0000000..d01f1f1
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/cd-root/isolinux/vbg.jpg
Binary files differ
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/cd-root/larch/copy/actions.rc b/build_tools/clarch/larch/profiles/i686-testing-local/cd-root/larch/copy/actions.rc
new file mode 100644
index 0000000..dd95b26
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/cd-root/larch/copy/actions.rc
@@ -0,0 +1,3 @@
+type=0
+orientation=1
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/cd-root/larch/copy/autologin b/build_tools/clarch/larch/profiles/i686-testing-local/cd-root/larch/copy/autologin
new file mode 100644
index 0000000..93ca142
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/cd-root/larch/copy/autologin
@@ -0,0 +1 @@
+root \ No newline at end of file
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/cd-root/larch/copy/bash_profile b/build_tools/clarch/larch/profiles/i686-testing-local/cd-root/larch/copy/bash_profile
new file mode 100644
index 0000000..c49349b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/cd-root/larch/copy/bash_profile
@@ -0,0 +1 @@
+. $HOME/.bashrc
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/cd-root/larch/copy/larch0 b/build_tools/clarch/larch/profiles/i686-testing-local/cd-root/larch/copy/larch0
new file mode 100644
index 0000000..c80b7c2
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/cd-root/larch/copy/larch0
@@ -0,0 +1,63 @@
+# This is a script 'sourced' from the installation script larch-tidy.
+# Its purpose is to remove custom live-only stuff from a just-installed
+# system.
+# ${INSTALL} is the path to the installed system root directory.
+
+rm "${INSTALL}/root/Desktop/Install Arch Linux.desktop"
+
+if [ -f ${INSTALL}/etc/rc.local.orig ]; then
+ mv ${INSTALL}/etc/rc.local.orig ${INSTALL}/etc/rc.local
+fi
+if [ -f ${INSTALL}/etc/rc.local.shutdown.orig ]; then
+ mv ${INSTALL}/etc/rc.local.shutdown.orig ${INSTALL}/etc/rc.local.shutdown
+fi
+
+# slim is currently started in inittab
+#sed -i '/^DAEMONS=/ s|!slim|@slim|' ${INSTALL}/etc/rc.conf
+
+# Copy xorg.conf.i810 to target xorg.conf if necessary
+if ! [ -f /etc/X11/xorg.conf ]; then
+ if grep i810 /proc/cmdline &>/dev/null; then
+ cp /etc/X11/xorg.conf.i810 ${INSTALL}/etc/X11/xorg.conf
+ fi
+fi
+
+#***************************************************#
+# Replace uses of larchquit in xfce panels and menu.#
+#***************************************************#
+### Unfortunately this isn't very simple. If anyone has a better way of
+### providing different Quit actions in the live version and the version
+### installed to disk from it, please let me know!
+### Maybe it would be better just to provide a special live quit desktop
+### icon which can be removed on installation, like the installation icon.
+
+defaultquit='<builtin name="Quit" cmd="Quit" icon="gnome-logout"/>'
+
+replacequit ()
+{
+ for f in ${INSTALL}$1/.config/xfce4/panel/*; do
+ if grep "^Exec=larchquit" ${f}; then
+ n=$( echo ${f} | sed "s|^.*-\([0-9]\+\).*|\1|" )
+ cp /.livesys/actions.rc \
+ ${INSTALL}$1/.config/xfce4/panel/actions-${n}.rc
+ rm ${f}
+
+ sed -i "s|=\"launcher\" id=\"${n}\"|=\"actions\" id=\"${n}\"|" \
+ ${INSTALL}$1/.config/xfce4/panel/panels.xml
+ fi
+ done
+
+ if [ -f ${INSTALL}$1/.bash_profile ]; then
+ sed -i "s|<app .*cmd=\"larchquit.*/>|${defaultquit}|" \
+ ${INSTALL}$1/.config/xfce4/desktop/menu.xml
+
+ cp /.livesys/xfce4-session.rc ${INSTALL}$1/.config/xfce4-session
+ cp /.livesys/bash_profile ${INSTALL}$1/.bash_profile
+ fi
+}
+
+for hd in $( cat ${INSTALL}/etc/passwd | cut -d':' -f6 | grep '^/home/' ) \
+ /root /etc/skel; do
+ replacequit ${hd} &>/dev/null
+done
+#***************************************************#
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/create_overlay.sh b/build_tools/clarch/larch/profiles/i686-testing-local/create_overlay.sh
new file mode 100755
index 0000000..6a4fdee
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/create_overlay.sh
@@ -0,0 +1 @@
+../../run/xpack -r overlay overlay.xpk
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/locale.gen b/build_tools/clarch/larch/profiles/i686-testing-local/locale.gen
new file mode 100644
index 0000000..760ec23
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/locale.gen
@@ -0,0 +1,5 @@
+# locales for larch (/etc/locale.gen)
+
+en_US ISO-8859-1
+en_US.UTF-8 UTF-8
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/overlay/home/mythtv/.fluxbox/apps b/build_tools/clarch/larch/profiles/i686-testing-local/overlay/home/mythtv/.fluxbox/apps
new file mode 100644
index 0000000..5a2b8d6
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/overlay/home/mythtv/.fluxbox/apps
@@ -0,0 +1,2 @@
+[startup] {feh --bg-scale ~/.fluxbox/wallpaper.png}
+[startup] {sudo /usr/MythVantage/bin/mythvantage}
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/overlay/home/mythtv/.xinitrc b/build_tools/clarch/larch/profiles/i686-testing-local/overlay/home/mythtv/.xinitrc
new file mode 100755
index 0000000..d988c98
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/overlay/home/mythtv/.xinitrc
@@ -0,0 +1,19 @@
+#!/bin/sh
+. /etc/profile
+#
+# ~/.xinitrc
+#
+# Executed by startx (run your window manager from here)
+#
+
+# exec gnome-session
+# exec startkde
+# exec startxfce4
+# exec icewm
+# exec openbox
+# exec blackbox
+# exec fluxbox
+# exec ratpoison
+# exec dwm
+# ... or any other WM of your choosing ...
+exec fluxbox
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/pacman.conf b/build_tools/clarch/larch/profiles/i686-testing-local/pacman.conf
new file mode 100755
index 0000000..750502b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/pacman.conf
@@ -0,0 +1,59 @@
+#
+# /etc/pacman.conf
+# from pacman.conf MV
+# NOTE: If you find a mirror that is geographically close to you, please
+# move it to the top of the server list, so pacman will choose it
+# first.
+#
+# To re-sort your mirror lists by ping/traceroute results, use the
+# /usr/bin/sortmirrors script. It requires the "netselect" package.
+#
+
+# See the pacman manpage for option directives
+
+#
+# GENERAL OPTIONS
+#
+[options]
+LogFile = /var/log/pacman.log
+NoUpgrade = etc/passwd etc/group etc/shadow etc/sudoers
+NoUpgrade = etc/fstab etc/raidtab etc/ld.so.conf
+NoUpgrade = etc/rc.conf etc/rc.local
+NoUpgrade = etc/modprobe.conf etc/modules.conf
+NoUpgrade = etc/lilo.conf boot/grub/menu.lst
+NoUpgrade = data/srv/hobbit/etc/bb-hosts
+NoUpgrade = etc/func/minion.conf
+
+HoldPkg = pacman glibc
+CacheDir = /data/var/cache/pacman/pkg
+#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
+
+#
+# REPOSITORIES
+# - can be defined here or included from another file
+# - pacman will search repositories in the order defined here.
+# - local/custom mirrors can be added here or in separate files
+#
+[core-testing]
+Server = file:///data/local/pkg_repo/i686/core-testing
+#Server = http://localmirror/repo/r6-testing/
+
+
+########################ARCH DEFAULTS#############
+#[core]
+# Add your preferred servers here, they will be used first
+#Include = /etc/pacman.d/mirrorlist
+
+#[extra]
+# Add your preferred servers here, they will be used first
+#Include = /etc/pacman.d/mirrorlist
+
+#[community]
+# Add your preferred servers here, they will be used first
+#Include = /etc/pacman.d/mirrorlist
+
+# Unstable is disabled by default. To enable, uncomment the following
+# two lines. You can add preferred servers immediately after the header,
+# and they will be used before the default mirrors.
+#[unstable]
+#Include = /etc/pacman.d/mirrorlist
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/post-process.sh b/build_tools/clarch/larch/profiles/i686-testing-local/post-process.sh
new file mode 100755
index 0000000..131b907
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/post-process.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+echo $@
+INSTDIR=$1
+PROFILE=$2
+
+#everything below this point is specific to MythVantage
+cp -rp $PROFILE/post_process $INSTDIR/.tweak
+chroot $INSTDIR .tweak/tweak.sh
+rm -rf $INSTDIR/.tweak
+
+#find the size of the install.
+#This is used to calculate progress on the install
+tsize=`du -sm $INSTDIR/ | cut -f1`
+echo "TOTALSIZE=$tsize" > $INSTDIR/root/.install_size
+upsize=`du -sm --exclude data $INSTDIR/ |cut -f1`
+echo "UPGRADESIZE=$upsize" >> $INSTDIR/root/.install_size
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.bash_profile b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.bash_profile
new file mode 100644
index 0000000..c49349b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.bash_profile
@@ -0,0 +1 @@
+. $HOME/.bashrc
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.bashrc b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.bashrc
new file mode 100644
index 0000000..fcabce0
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.bashrc
@@ -0,0 +1,3 @@
+alias ls='ls --color=auto'
+PS1='[\u@\h \W]\$ '
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.fluxbox/apps b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.fluxbox/apps
new file mode 100644
index 0000000..52db7fe
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.fluxbox/apps
@@ -0,0 +1,2 @@
+[startup] {feh --bg-scale ~/.fluxbox/wallpaper.png}
+[startup] {mythfrontend}
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.fluxbox/init b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.fluxbox/init
new file mode 100644
index 0000000..aa4040a
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.fluxbox/init
@@ -0,0 +1,35 @@
+session.screen0.slit.placement: BottomRight
+session.screen0.slit.direction: Vertical
+session.screen0.slit.onTop: False
+session.screen0.slit.autoHide: True
+session.screen0.tab.placement: Top
+session.screen0.toolbar.onTop: False
+session.screen0.toolbar.visible: False
+session.screen0.toolbar.autoHide: False
+session.screen0.toolbar.placement: BottomCenter
+session.screen0.toolbar.widthPercent: 66
+session.screen0.workspaceNames: one,two,three,four
+session.screen0.strftimeFormat: %k:%M
+session.screen0.focusNewWindows: True
+session.screen0.focusModel: ClickToFocus
+session.screen0.fullMaximization: False
+session.screen0.edgeSnapThreshold: 0
+session.screen0.rowPlacementDirection: LeftToRight
+session.screen0.workspaces: 4
+session.screen0.focusLastWindow: True
+session.screen0.colPlacementDirection: TopToBottom
+session.screen0.windowPlacement: RowSmartPlacement
+session.screen0.tab.width: 64
+session.screen0.tab.height: 16
+session.screen0.showwindowposition: true
+session.opaqueMove: False
+session.autoRaiseDelay: 250
+session.menuFile: ~/.fluxbox/menu
+session.cacheLife: 5
+session.styleFile: /usr/share/fluxbox/styles/bora_black
+session.keyFile: ~/.fluxbox/keys
+session.colorsPerChannel: 4
+session.doubleClickInterval: 250
+session.cacheMax: 200
+session.imageDither: True
+session.configVersion: 1
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.fluxbox/menu b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.fluxbox/menu
new file mode 100644
index 0000000..858090e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.fluxbox/menu
@@ -0,0 +1,81 @@
+# Generated by fluxbox-generate_menu
+#
+# If you read this it means you want to edit this file manually, so here
+# are some useful tips:
+#
+# - You can add your own menu-entries to ~/.fluxbox/usermenu
+#
+# - If you miss apps please let me know and I will add them for the next
+# release.
+#
+# - The -r option prevents removing of empty menu entries and lines which
+# makes things much more readable.
+#
+# - To prevent any other app from overwriting your menu
+# you can change the menu name in .fluxbox/init to:
+# session.menuFile: /home/mythtv/.fluxbox/my-menu
+[begin] (Fluxbox)
+[encoding] {UTF-8}
+ [exec] (xterm) {xterm}
+ [exec] () {} execname is NULL; cannot lookup
+ [exec] (Run) {fbrun }
+[submenu] (Terminals)
+ [exec] (xterm) {xterm}
+[end]
+[submenu] (Editors)
+ [exec] (xedit) {xedit}
+ [exec] (nano) {xterm -e nano}
+ [exec] (vi) {xterm -e vi}
+[end]
+[submenu] (Multimedia)
+[submenu] (Audio)
+ [exec] (alsamixer) {xterm -e alsamixer}
+[end]
+[submenu] (Video)
+ [exec] (gmplayer) {gmplayer}
+[end]
+[submenu] (X-utils)
+ [exec] (xfontsel) {xfontsel}
+ [exec] (xman) {xman}
+ [exec] (xload) {xload}
+ [exec] (xbiff) {xbiff}
+ [exec] (xclock) {xclock}
+ [exec] (xmag) {xmag}
+ [exec] (Reload .Xdefaults) {xrdb -load /home/mythtv/.Xdefaults}
+[end]
+[end]
+[submenu] (Office)
+ [exec] (xclock) {xclock}
+ [exec] (xcalc) {xcalc}
+[end]
+[submenu] (Games)
+ [exec] (xeyes) {xeyes}
+[end]
+[submenu] (System Tools)
+ [exec] (top) {xterm -e top}
+[end]
+[submenu] (fluxbox menu)
+ [config] (Configure)
+[submenu] (System Styles) {Choose a style...}
+ [stylesdir] (/usr/share/fluxbox/styles)
+[end]
+[submenu] (User Styles) {Choose a style...}
+ [stylesdir] (~/.fluxbox/styles)
+[end]
+ [workspaces] (Workspace List)
+[submenu] (Tools)
+ [exec] (Window name) {xprop WM_CLASS|cut -d \" -f 2|xmessage -file - -center}
+ [exec] (Screenshot - JPG) {import screenshot.jpg && display -resize 50% screenshot.jpg}
+ [exec] (Screenshot - PNG) {import screenshot.png && display -resize 50% screenshot.png}
+ [exec] (Run) {fbrun }
+ [exec] (Regen Menu) {/usr/bin/fluxbox-generate_menu }
+[end]
+ [commanddialog] (Fluxbox Command)
+ [reconfig] (Reload config)
+ [restart] (Restart)
+ [exec] (About) {(fluxbox -v; fluxbox -info | sed 1d) 2> /dev/null | xmessage -file - -center}
+ [separator]
+ [exit] (Exit)
+[end]
+[endencoding]
+[end]
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.fluxbox/menuconfig b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.fluxbox/menuconfig
new file mode 100644
index 0000000..ef5b398
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.fluxbox/menuconfig
@@ -0,0 +1,65 @@
+# This file is read by fluxbox-generate_menu. If you don't like a
+# default you can change it here. Don't forget to remove the # in front
+# of the line.
+
+# Your favourite terminal. Put the command in quotes if you want to use
+# options. Put a backslash in before odd chars
+# MY_TERM='Eterm --tint \#123456'
+# MY_TERM='aterm -tint $(random_color)'
+
+# Your favourite browser. You can also specify options.
+# MY_BROWSER=mozilla
+
+# Name of the outputfile
+# MENUFILENAME=/home/mythtv/.fluxbox/menu
+
+# MENUTITLE=`fluxbox -version|cut -d " " -f-2`
+
+# standard url for console-browsers
+# HOMEPAGE=fluxbox.org
+
+# location with your own menu-entries
+# USERMENU=~/.fluxbox/usermenu
+
+# Put the launcher you would like to use here
+# LAUNCHER=fbrun
+# LAUNCHER=fbgm
+
+# Options for fbrun
+# FBRUNOPTIONS='-font 10x20 -fg grey -bg black -title run'
+
+# --- PREFIX'es
+# These are prefixes; So if fluxbox is installed in /usr/bin/fluxbox
+# your prefix is: /usr
+
+# fluxbox-generate already looks in /usr/X11R6, /usr, /usr/local and /opt so
+# there should be no need to specify them.
+#
+# PREFIX=/usr
+# GNOME_PREFIX=/opt/gnome
+# KDE_PREFIX=/opt/kde
+
+
+# Sepparate the list of background-dirs with semicolumns ':'
+# BACKGROUND_DIRS="/home/mythtv/.fluxbox/backgrounds/:/usr/share/fluxbox/backgrounds/:/usr/share/wallpapers"
+
+
+# --- Boolean variables.
+# Setting a variable to no'' won't help. Comment them out if you don't
+# want them. Setting are overruled by the command-line options.
+
+# Include all backgrounds in your backgrounds-directory
+# BACKGROUNDMENUITEM=yes
+
+# Include kde-menus
+# KDEMENU=yes
+
+# Include gnome-menus
+# GNOMEMENU=yes
+
+# enable sudo commands
+# DOSUDO=yes
+
+# Don't cleanup the menu
+# REMOVE=no
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.fluxbox/wallpaper.png b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.fluxbox/wallpaper.png
new file mode 100644
index 0000000..83da80c
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.fluxbox/wallpaper.png
Binary files differ
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.xinitrc b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.xinitrc
new file mode 100755
index 0000000..911e76e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.xinitrc
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+#
+# ~/.xinitrc
+#
+# Executed by startx (run your window manager from here)
+#
+
+# exec gnome-session
+# exec startkde
+# exec startxfce4
+# exec icewm
+# exec openbox
+# exec blackbox
+exec fluxbox
+# exec ratpoison
+# exec dwm
+# ... or any other WM of your choosing ...
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.xsession b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.xsession
new file mode 100755
index 0000000..a16dc0b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/home/mythtv/.xsession
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+#
+# ~/.xsession
+#
+# Executed by xdm/gdm/kdm at login
+#
+
+/bin/bash --login -i ~/.xinitrc
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/post_process/hosts.allow b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/hosts.allow
new file mode 100644
index 0000000..ca19dbb
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/hosts.allow
@@ -0,0 +1,7 @@
+#
+# /etc/hosts.allow
+#
+ALL: 192.168.
+ALL: 10.
+ALL: 127.0.0.1
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/post_process/hosts.deny b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/hosts.deny
new file mode 100755
index 0000000..ca30ab4
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/hosts.deny
@@ -0,0 +1,6 @@
+#
+# /etc/hosts.deny
+#
+ALL
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/post_process/menu.lst b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/menu.lst
new file mode 100755
index 0000000..ce33757
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/menu.lst
@@ -0,0 +1,60 @@
+# Config file for GRUB - The GNU GRand Unified Bootloader
+# /boot/grub/menu.lst
+
+# DEVICE NAME CONVERSIONS
+#
+# Linux Grub
+# -------------------------
+# /dev/fd0 (fd0)
+# /dev/hda (hd0)
+# /dev/hdb2 (hd1,1)
+# /dev/hda3 (hd0,2)
+#
+
+# FRAMEBUFFER RESOLUTION SETTINGS
+# +-------------------------------------------------+
+# | 640x480 800x600 1024x768 1280x1024
+# ----+--------------------------------------------
+# 256 | 0x301=769 0x303=771 0x305=773 0x307=775
+# 32K | 0x310=784 0x313=787 0x316=790 0x319=793
+# 64K | 0x311=785 0x314=788 0x317=791 0x31A=794
+# 16M | 0x312=786 0x315=789 0x318=792 0x31B=795
+# +-------------------------------------------------+
+
+# general configuration:
+timeout 5
+default 0
+#color light-blue/black light-cyan/blue
+
+# boot sections follow
+# each is implicitly numbered from 0 in the order of appearance below
+#
+# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
+#
+#-*
+hiddenmenu
+
+# (0) normal
+title LinHes
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit console=tty1
+initrd /boot/kernel26.img
+
+# (1) bootsplash
+title LinHes-splashy
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit quiet vga=0x318 splash=silent,theme:darch console=tty1
+initrd /boot/kernel26.img
+
+# (2) noautologin
+title STB-nologin
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit quiet vga=0x318 splash=silent,theme:darch console=tty1 noautologin
+initrd /boot/kernel26.img
+
+
+# (3) normal
+title LinHes-init
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro console=tty1
+initrd /boot/kernel26.img
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/post_process/rc.conf b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/rc.conf
new file mode 100755
index 0000000..856b0be
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/rc.conf
@@ -0,0 +1,113 @@
+#
+# /etc/rc.conf - Main Configuration for Arch Linux
+#
+
+#
+# -----------------------------------------------------------------------
+# LOCALIZATION
+# -----------------------------------------------------------------------
+#
+# LOCALE: available languages can be listed with the 'locale -a' command
+# HARDWARECLOCK: set to "UTC" or "localtime"
+# TIMEZONE: timezones are found in /usr/share/zoneinfo
+# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
+# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
+# CONSOLEMAP: found in /usr/share/kbd/consoletrans
+# USECOLOR: use ANSI color sequences in startup messages
+#
+LOCALE="en_US.utf8"
+HARDWARECLOCK="UTC"
+TIMEZONE="US/Central"
+KEYMAP="us"
+CONSOLEFONT=
+CONSOLEMAP=
+USECOLOR="yes"
+
+#
+# -----------------------------------------------------------------------
+# HARDWARE
+# -----------------------------------------------------------------------
+#
+# Scan hardware and load required modules at bootup
+MOD_AUTOLOAD="yes"
+if [ -f /etc/systemconfig ]
+then
+ . /etc/systemconfig
+fi
+
+if [ x$Audiotype = xOSS -a ! -f /tmp/.alsatest ]
+then
+ ALSABLACKLIST="soundcore"
+else
+ if [ x$Audiotype = xOSS ]
+ then
+ ALSABLACKLIST="soundcore"
+ else
+ ALSABLACKLIST=""
+ fi
+fi
+
+# Module Blacklist - modules in this list will never be loaded by udev
+MOD_BLACKLIST=($ALSABLACKLIST)
+#
+# Modules to load at boot-up (in this order)
+# - prefix a module with a ! to blacklist it
+#
+MODULES=()
+# Scan for LVM volume groups at startup, required if you use LVM
+USELVM="no"
+
+#
+# -----------------------------------------------------------------------
+# NETWORKING
+# -----------------------------------------------------------------------
+#
+HOSTNAME=`cat /etc/hostname`
+
+#The following is only used on the install. After the first boot everything is set from /etc/net.
+
+
+#
+# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available
+# interfaces.
+#
+# Interfaces to start at boot-up (in this order)
+# Declare each interface then list in INTERFACES
+# - prefix an entry in INTERFACES with a ! to disable it
+# - no hyphens in your interface names - Bash doesn't like it
+#
+# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
+#
+lo="lo 127.0.0.1"
+#eth0="dhcp"
+INTERFACES=(lo )
+#
+# Routes to start at boot-up (in this order)
+# Declare each route then list in ROUTES
+# - prefix an entry in ROUTES with a ! to disable it
+#
+gateway="default gw 192.168.0.1"
+ROUTES=(!gateway)
+#
+# Enable these network profiles at boot-up. These are only useful
+# if you happen to need multiple network configurations (ie, laptop users)
+# - set to 'menu' to present a menu during boot-up (dialog package required)
+# - prefix an entry with a ! to disable it
+#
+# Network profiles are found in /etc/network-profiles
+#
+#NET_PROFILES=(main)
+
+#
+# -----------------------------------------------------------------------
+# DAEMONS
+# -----------------------------------------------------------------------
+#
+# Daemons to start at boot-up (in this order)
+# - prefix a daemon with a ! to disable it
+# - prefix a daemon with a @ to start it up in the background
+#
+#DAEMONS=(syslog-ng network netfs crond)
+DAEMONS=(!syslog-ng !hotplug !pcmcia network mysqld dbus avahi-daemon)
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/post_process/rc.shutdown b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/rc.shutdown
new file mode 100755
index 0000000..1a8cdbe
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/rc.shutdown
@@ -0,0 +1,104 @@
+#!/bin/bash
+#
+# /etc/rc.shutdown
+#
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+# avoid staircase effect
+/bin/stty onlcr
+
+echo " "
+printhl "Initiating Shutdown..."
+echo " "
+
+if [ -x /etc/rc.local.shutdown ]; then
+ /etc/rc.local.shutdown
+fi
+
+if [ "$PREVLEVEL" = "3" -o "$PREVLEVEL" = "5" ]; then
+ # Shutdown daemons
+ let i=${#DAEMONS[@]}
+ while [[ i -ge 0 ]]; do
+ if [[ `echo ${DAEMONS[$i]} | grep '^[^\!]' | wc -l` -eq 1 ]]; then
+ /etc/rc.d/${DAEMONS[$i]#@} stop
+ fi
+ let i=i-1
+ done
+ # find any leftover daemons and shut them down
+ if [ -d /var/run/daemons ]; then
+ for daemon in `ls /var/run/daemons`; do
+ /etc/rc.d/$daemon stop
+ done
+ fi
+fi
+
+# Terminate all processes
+stat_busy "Sending SIGTERM To Processes"
+/sbin/killall5 -15 &> /dev/null
+/bin/sleep 5
+stat_done
+
+stat_busy "Sending SIGKILL To Processes"
+/sbin/killall5 -9 &> /dev/null
+/bin/sleep 1
+stat_done
+
+stat_busy "Saving Random Seed"
+/bin/dd if=/dev/urandom of=/var/run/random-seed count=1 bs=512 2> /dev/null
+stat_done
+
+stat_busy "Saving System Clock"
+if [ "$HARDWARECLOCK" = "UTC" ]; then
+ /sbin/hwclock --directisa --utc --systohc
+else
+ /sbin/hwclock --directisa --localtime --systohc
+fi
+stat_done
+
+# removing psmouse module to fix some reboot issues on newer laptops
+modprobe -r psmouse >/dev/null 2>&1
+
+# Write to wtmp file before unmounting
+/sbin/halt -w
+
+stat_busy "Deactivating Swap"
+/sbin/swapoff -a
+stat_done
+
+stat_busy "Unmounting Filesystems"
+/bin/umount -a
+stat_done
+
+if [ "$USELVM" = "yes" -o "$USELVM" = "YES" ]; then
+ if [ -d /etc/lvm -a -x /sbin/lvm ]; then
+ /bin/mount -n -t sysfs none /sys 2>/dev/null
+ if [ -d /sys/block ]; then
+ stat_busy "Deactivating LVM2 groups"
+ /sbin/lvm vgchange --ignorelockingfailure -a n
+ stat_done
+ umount /sys
+ fi
+ fi
+fi
+
+stat_busy "Remounting Root Filesystem Read-only"
+/bin/mount -n -o remount,ro /
+stat_done
+exit 0
+# Power off or reboot
+if [ "$RUNLEVEL" = "0" ]; then
+ printsep
+ printhl "${C_H2}POWER OFF"
+ /sbin/poweroff -d -f -h -i
+else
+ printsep
+ printhl "${C_H2}REBOOTING"
+ # adding kexec support
+ [ -x /usr/sbin/kexec ] && /usr/sbin/kexec -e > /dev/null 2>&1
+ /sbin/reboot -d -f -i
+fi
+
+# End of file
+# vim: set ts=2 noet:
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/post_process/tweak.sh b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/tweak.sh
new file mode 100755
index 0000000..5c73cf4
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/post_process/tweak.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+useradd -m -s /bin/bash mythtv -G audio,video,optical,storage,users
+echo 'setting mythtv password to "a" '
+passwd mythtv <<EOF
+a
+a
+EOF
+
+echo 'setting root password to "a" '
+passwd root <<EOF
+a
+a
+EOF
+
+#edit /home/mythtv/.xinitrc and uncomment exec fluxbox
+cp -rvpf /.tweak/home/mythtv /home/
+
+
+
+chown -R mythtv.mythtv /home/mythtv/
+
+
+
+cp -f /.tweak/hosts.allow /etc/hosts.allow
+cp -f /.tweak/securetty /etc/securetty
+cp -f /.tweak/rc.conf /etc/rc.conf
+#cp -f rc.local /etc/rc.local
+#cp -f locale.gen /etc/locale.gen
+
+cp -f /.tweak/rc.shutdown /etc/rc.shutdown
+cp -f /.tweak/menu.lst /boot/grub/menu.lst
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/pre-process.sh b/build_tools/clarch/larch/profiles/i686-testing-local/pre-process.sh
new file mode 100755
index 0000000..5bc1f9c
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/pre-process.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+rm -f overlay.xpk
+if [ -d overlay/home/mythtv ]
+then
+ chown -R 1000 overlay/home/mythtv
+fi
+./create_overlay.sh
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/rcconfx b/build_tools/clarch/larch/profiles/i686-testing-local/rcconfx
new file mode 100644
index 0000000..23e671e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/rcconfx
@@ -0,0 +1,19 @@
+#
+# patch file for /etc/rc.conf
+#
+
+LOCALE="en_US.utf8"
+HARDWARECLOCK="UTC"
+TIMEZONE="UTC"
+KEYMAP="us"
+
+MODULES=(floppy)
+
+HOSTNAME="larch5"
+
+USELVM="yes"
+
+#eth0="dhcp"
+
+DAEMONS=(syslog-ng network mysqld dbus hal !slim sshd)
+SPLASH="splashy"
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/X11/xinit/startx.custom b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/X11/xinit/startx.custom
new file mode 100644
index 0000000..8e3ec5e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/X11/xinit/startx.custom
@@ -0,0 +1,22 @@
+if grep -v nox /proc/cmdline &>/dev/null && \
+ [ -z "$DISPLAY" ] && echo $(tty) | grep /vc/1 &>/dev/null; then
+ if grep i810 /proc/cmdline &>/dev/null; then
+ startx -- -config xorg.conf.i810
+ else
+ startx
+ fi
+
+ # Maybe there should be some code here to handle a failed startx?
+
+ # The 'return' value is at /tmp/xlogout
+ # If there is nothing there, switch user to 'newuser'
+ # If there is also nothing there, login as root
+ # - if already root, fall through to terminal
+
+ if [ -f /tmp/xlogout ] || [ -f /tmp/newuser ]; then
+ logout
+ elif [ ${UID} -ne 0 ]; then
+ echo "root" >/tmp/newuser
+ logout
+ fi
+fi
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/X11/xinit/xinitrc.custom b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/X11/xinit/xinitrc.custom
new file mode 100644
index 0000000..5f04171
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/X11/xinit/xinitrc.custom
@@ -0,0 +1,4 @@
+# Set the keymap
+xkmap-set
+
+exec fluxbox
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/X11/xorg.conf b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/X11/xorg.conf
new file mode 100644
index 0000000..6d11b2e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/X11/xorg.conf
@@ -0,0 +1,49 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ Identifier "Card0"
+ Driver "vesa"
+EndSection
+
+Section "Monitor"
+ Identifier "Monitor0"
+ HorizSync 30.0 - 65.0
+ VertRefresh 50.0 - 75.0
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ DefaultDepth 16
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ Modes "1024x768" "800x600"
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/X11/xorg.conf.i810 b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/X11/xorg.conf.i810
new file mode 100644
index 0000000..9615569
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/X11/xorg.conf.i810
@@ -0,0 +1,59 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ ### Available Driver options are:-
+ ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
+ ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
+ ### [arg]: arg optional
+ #Option "NoAccel" # [<bool>]
+ #Option "SWcursor" # [<bool>]
+ #Option "ColorKey" # <i>
+ #Option "CacheLines" # <i>
+ #Option "Dac6Bit" # [<bool>]
+ #Option "DRI" # [<bool>]
+ #Option "NoDDC" # [<bool>]
+ #Option "ShowCache" # [<bool>]
+ #Option "XvMCSurfaces" # <i>
+ #Option "PageFlip" # [<bool>]
+ Option "DRI" "False"
+ #Option "AccelMethod" "exa"
+ #Option "MigrationHeuristic" "greedy"
+ #Option "ExaNoComposite" "False"
+ Identifier "Card0"
+ Driver "intel"
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/X11/xorg.conf.i810.2 b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/X11/xorg.conf.i810.2
new file mode 100644
index 0000000..a295b38
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/X11/xorg.conf.i810.2
@@ -0,0 +1,67 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ ### Available Driver options are:-
+ ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
+ ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
+ ### [arg]: arg optional
+ #Option "NoAccel" # [<bool>]
+ #Option "SWcursor" # [<bool>]
+ #Option "ColorKey" # <i>
+ #Option "CacheLines" # <i>
+ #Option "Dac6Bit" # [<bool>]
+ #Option "DRI" # [<bool>]
+ #Option "NoDDC" # [<bool>]
+ #Option "ShowCache" # [<bool>]
+ #Option "XvMCSurfaces" # <i>
+ #Option "PageFlip" # [<bool>]
+ Option "DRI" "False"
+ #Option "AccelMethod" "exa"
+ #Option "MigrationHeuristic" "greedy"
+ #Option "ExaNoComposite" "False"
+ Identifier "Card0"
+ Driver "intel"
+EndSection
+
+Section "Monitor"
+ Identifier "Monitor0"
+ HorizSync 30.0 - 65.0
+ VertRefresh 50.0 - 75.0
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ DefaultDepth 16
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ Modes "1024x768" "800x600"
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/X11/xorg.conf.vesa b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/X11/xorg.conf.vesa
new file mode 100644
index 0000000..6d11b2e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/X11/xorg.conf.vesa
@@ -0,0 +1,49 @@
+Section "ServerLayout"
+ Identifier "X.org Configured"
+ Screen 0 "Screen0" 0 0
+EndSection
+
+Section "Device"
+ Identifier "Card0"
+ Driver "vesa"
+EndSection
+
+Section "Monitor"
+ Identifier "Monitor0"
+ HorizSync 30.0 - 65.0
+ VertRefresh 50.0 - 75.0
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Card0"
+ Monitor "Monitor0"
+ DefaultDepth 16
+ SubSection "Display"
+ Viewport 0 0
+ Depth 1
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 4
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 8
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 15
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 16
+ Modes "1024x768" "800x600"
+ EndSubSection
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/conf.d/dhcpcd b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/conf.d/dhcpcd
new file mode 100644
index 0000000..ab53c30
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/conf.d/dhcpcd
@@ -0,0 +1,6 @@
+#
+# Arguments to be passed to the DHCP client daemon
+#
+
+DHCPCD_ARGS="-t 10 -h $HOSTNAME"
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/hosts.allow b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/hosts.allow
new file mode 100644
index 0000000..19bc4d8
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/hosts.allow
@@ -0,0 +1,13 @@
+#
+# /etc/hosts.allow
+#
+
+ALL: 127.0.0.1
+
+# To allow ssh in from anywhere
+sshd: ALL
+
+# To allow ssh in from local net (example)
+#sshd: 192.168.178.0/255.255.255.0
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/inittab b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/inittab
new file mode 100644
index 0000000..2de483f
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/inittab
@@ -0,0 +1,43 @@
+#
+# /etc/inittab
+#
+
+# Runlevels:
+# 0 Halt
+# 1(S) Single-user
+# 2 Not used
+# 3 Multi-user
+# 4 Not used
+# 5 X11
+# 6 Reboot
+
+## Only one of the following two lines can be uncommented!
+# Boot to console
+id:5:initdefault:
+# Boot to X11
+#id:5:initdefault:
+
+rc::sysinit:/etc/rc.sysinit
+rs:S1:wait:/etc/rc.single
+rm:2345:wait:/etc/rc.multi
+rh:06:wait:/etc/rc.shutdown
+su:S:wait:/sbin/sulogin -p
+
+# -8 options fixes umlauts problem on login
+c1:2345:respawn:/sbin/agetty -8 38400 vc/1 linux -n -l /etc/ulogin
+c2:2345:respawn:/sbin/agetty -8 38400 vc/2 linux
+c3:2345:respawn:/sbin/agetty -8 38400 vc/3 linux
+c4:2345:respawn:/sbin/agetty -8 38400 vc/4 linux
+c5:2345:respawn:/sbin/agetty -8 38400 vc/5 linux
+c6:2345:respawn:/sbin/agetty -8 38400 vc/6 linux
+c7:5:respawn:/usr/bin/openvt -fwc 6 -- /bin/su - mythtv -c /usr/bin/startx >& /dev/null
+
+ca::ctrlaltdel:/sbin/shutdown -t3 -r now
+
+# Example lines for starting a login manager
+#x:5:respawn:/usr/bin/xdm -nodaemon
+#x:5:respawn:/usr/sbin/gdm -nodaemon
+#x:5:respawn:/opt/kde/bin/kdm -nodaemon
+#x:5:respawn:/usr/bin/slim >& /dev/null
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/inittab.larchsave b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/inittab.larchsave
new file mode 100644
index 0000000..2de483f
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/inittab.larchsave
@@ -0,0 +1,43 @@
+#
+# /etc/inittab
+#
+
+# Runlevels:
+# 0 Halt
+# 1(S) Single-user
+# 2 Not used
+# 3 Multi-user
+# 4 Not used
+# 5 X11
+# 6 Reboot
+
+## Only one of the following two lines can be uncommented!
+# Boot to console
+id:5:initdefault:
+# Boot to X11
+#id:5:initdefault:
+
+rc::sysinit:/etc/rc.sysinit
+rs:S1:wait:/etc/rc.single
+rm:2345:wait:/etc/rc.multi
+rh:06:wait:/etc/rc.shutdown
+su:S:wait:/sbin/sulogin -p
+
+# -8 options fixes umlauts problem on login
+c1:2345:respawn:/sbin/agetty -8 38400 vc/1 linux -n -l /etc/ulogin
+c2:2345:respawn:/sbin/agetty -8 38400 vc/2 linux
+c3:2345:respawn:/sbin/agetty -8 38400 vc/3 linux
+c4:2345:respawn:/sbin/agetty -8 38400 vc/4 linux
+c5:2345:respawn:/sbin/agetty -8 38400 vc/5 linux
+c6:2345:respawn:/sbin/agetty -8 38400 vc/6 linux
+c7:5:respawn:/usr/bin/openvt -fwc 6 -- /bin/su - mythtv -c /usr/bin/startx >& /dev/null
+
+ca::ctrlaltdel:/sbin/shutdown -t3 -r now
+
+# Example lines for starting a login manager
+#x:5:respawn:/usr/bin/xdm -nodaemon
+#x:5:respawn:/usr/sbin/gdm -nodaemon
+#x:5:respawn:/opt/kde/bin/kdm -nodaemon
+#x:5:respawn:/usr/bin/slim >& /dev/null
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/larch-shutdown b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/larch-shutdown
new file mode 100644
index 0000000..d614d4b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/larch-shutdown
@@ -0,0 +1,47 @@
+# Functions used by rc.shutdown
+# Modified versions for larch live systems
+
+f_saveclock ()
+{
+ :
+}
+
+f_swapoff ()
+{
+ ############################# Include session saving functions
+ # . /opt/larch-live/session-save/shutdown2
+ # if [ -f /tmp/checkse ]; then
+ # . /tmp/checkse
+ #else
+ # checkse
+ # fi
+
+ if [ -n "${saving}" ] && ! session_save; then
+ echo
+ echo "If you know what you are doing, you may be able to recover"
+ echo "something from this unpleasant situation."
+ echo
+ echo "You may use the command line to investigate further ..."
+ echo
+ echo "When finished please enter 'exit', the shutdown process will"
+ echo "then continue."
+ sh -i
+ fi
+
+ #############################
+
+ stat_busy "Deactivating Swap"
+ /sbin/swapoff -a
+ stat_done
+}
+
+f_remountro ()
+{
+ if [ -n "${ejectdev}" ]; then
+ echo "Ejecting live CD"
+ eject ${ejectdev}
+ echo "sleeping for 6 seconds"
+ sleep 6
+
+ fi
+}
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/ppp/options b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/ppp/options
new file mode 100644
index 0000000..237c390
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/ppp/options
@@ -0,0 +1,352 @@
+# /etc/ppp/options
+#
+# Originally created by Jim Knoble <jmknoble@mercury.interpath.net>
+# Modified for Debian by alvar Bray <alvar@meiko.co.uk>
+# Modified for PPP Server setup by Christoph Lameter <clameter@debian.org>
+# Modified for ArchLinux by Manolis Tzanidakis <manolis@archlinux.org>
+#
+# To quickly see what options are active in this file, use this command:
+# egrep -v '#|^ *$' /etc/ppp/options
+
+# Specify which DNS Servers the incoming Win95 or WinNT Connection should use
+# Two Servers can be remotely configured
+# ms-dns 192.168.1.1
+# ms-dns 192.168.1.2
+
+# Specify which WINS Servers the incoming connection Win95 or WinNT should use
+# ms-wins 192.168.1.50
+# ms-wins 192.168.1.51
+
+# Run the executable or shell command specified after pppd has
+# terminated the link. This script could, for example, issue commands
+# to the modem to cause it to hang up if hardware modem control signals
+# were not available.
+#disconnect "chat -- \d+++\d\c OK ath0 OK"
+
+# async character map -- 32-bit hex; each bit is a character
+# that needs to be escaped for pppd to receive it. 0x00000001
+# represents '\x01', and 0x80000000 represents '\x1f'.
+asyncmap 0
+
+# Require the peer to authenticate itself before allowing network
+# packets to be sent or received.
+# Please do not disable this setting. It is expected to be standard in
+# future releases of pppd. Use the call option (see manpage) to disable
+# authentication for specific peers.
+#auth
+
+# Use hardware flow control (i.e. RTS/CTS) to control the flow of data
+# on the serial port.
+crtscts
+
+# Use software flow control (i.e. XON/XOFF) to control the flow of data
+# on the serial port.
+#xonxoff
+
+# Specifies that certain characters should be escaped on transmission
+# (regardless of whether the peer requests them to be escaped with its
+# async control character map). The characters to be escaped are
+# specified as a list of hex numbers separated by commas. Note that
+# almost any character can be specified for the escape option, unlike
+# the asyncmap option which only allows control characters to be
+# specified. The characters which may not be escaped are those with hex
+# values 0x20 - 0x3f or 0x5e.
+#escape 11,13,ff
+
+# Don't use the modem control lines.
+#local
+
+# Specifies that pppd should use a UUCP-style lock on the serial device
+# to ensure exclusive access to the device.
+lock
+
+# Don't show the passwords when logging the contents of PAP packets.
+# This is the default.
+hide-password
+
+# When logging the contents of PAP packets, this option causes pppd to
+# show the password string in the log message.
+#show-password
+
+# Use the modem control lines. On Ultrix, this option implies hardware
+# flow control, as for the crtscts option. (This option is not fully
+# implemented.)
+modem
+
+# Set the MRU [Maximum Receive Unit] value to <n> for negotiation. pppd
+# will ask the peer to send packets of no more than <n> bytes. The
+# minimum MRU value is 128. The default MRU value is 1500. A value of
+# 296 is recommended for slow links (40 bytes for TCP/IP header + 256
+# bytes of data).
+#mru 542
+
+# Set the interface netmask to <n>, a 32 bit netmask in "decimal dot"
+# notation (e.g. 255.255.255.0).
+#netmask 255.255.255.0
+
+# Disables the default behaviour when no local IP address is specified,
+# which is to determine (if possible) the local IP address from the
+# hostname. With this option, the peer will have to supply the local IP
+# address during IPCP negotiation (unless it specified explicitly on the
+# command line or in an options file).
+#noipdefault
+
+# Enables the "passive" option in the LCP. With this option, pppd will
+# attempt to initiate a connection; if no reply is received from the
+# peer, pppd will then just wait passively for a valid LCP packet from
+# the peer (instead of exiting, as it does without this option).
+#passive
+
+# With this option, pppd will not transmit LCP packets to initiate a
+# connection until a valid LCP packet is received from the peer (as for
+# the "passive" option with old versions of pppd).
+#silent
+
+# Don't request or allow negotiation of any options for LCP and IPCP
+# (use default values).
+#-all
+
+# Disable Address/Control compression negotiation (use default, i.e.
+# address/control field disabled).
+#-ac
+
+# Disable asyncmap negotiation (use the default asyncmap, i.e. escape
+# all control characters).
+#-am
+
+# Don't fork to become a background process (otherwise pppd will do so
+# if a serial device is specified).
+#-detach
+
+# Disable IP address negotiation (with this option, the remote IP
+# address must be specified with an option on the command line or in
+# an options file).
+#-ip
+
+# Disable IPCP negotiation and IP communication. This option should
+# only be required if the peer is buggy and gets confused by requests
+# from pppd for IPCP negotiation.
+#noip
+
+# Disable magic number negotiation. With this option, pppd cannot
+# detect a looped-back line.
+#-mn
+
+# Disable MRU [Maximum Receive Unit] negotiation (use default, i.e.
+# 1500).
+#-mru
+
+# Disable protocol field compression negotiation (use default, i.e.
+# protocol field compression disabled).
+#-pc
+
+# Require the peer to authenticate itself using PAP.
+#+pap
+
+# Don't agree to authenticate using PAP.
+#-pap
+
+# Require the peer to authenticate itself using CHAP [Cryptographic
+# Handshake Authentication Protocol] authentication.
+#+chap
+
+# Don't agree to authenticate using CHAP.
+#-chap
+
+# Disable negotiation of Van Jacobson style IP header compression (use
+# default, i.e. no compression).
+#-vj
+
+# Increase debugging level (same as -d). If this option is given, pppd
+# will log the contents of all control packets sent or received in a
+# readable form. The packets are logged through syslog with facility
+# daemon and level debug. This information can be directed to a file by
+# setting up /etc/syslog.conf appropriately (see syslog.conf(5)). (If
+# pppd is compiled with extra debugging enabled, it will log messages
+# using facility local2 instead of daemon).
+#debug
+
+# Append the domain name <d> to the local host name for authentication
+# purposes. For example, if gethostname() returns the name porsche,
+# but the fully qualified domain name is porsche.Quotron.COM, you would
+# use the domain option to set the domain name to Quotron.COM.
+#domain <d>
+
+# Enable debugging code in the kernel-level PPP driver. The argument n
+# is a number which is the sum of the following values: 1 to enable
+# general debug messages, 2 to request that the contents of received
+# packets be printed, and 4 to request that the contents of transmitted
+# packets be printed.
+#kdebug n
+
+# Set the MTU [Maximum Transmit Unit] value to <n>. Unless the peer
+# requests a smaller value via MRU negotiation, pppd will request that
+# the kernel networking code send data packets of no more than n bytes
+# through the PPP network interface.
+#mtu <n>
+
+# Set the name of the local system for authentication purposes to <n>.
+# This is a privileged option. With this option, pppd will use lines in the
+# secrets files which have <n> as the second field when looking for a
+# secret to use in authenticating the peer. In addition, unless overridden
+# with the user option, <n> will be used as the name to send to the peer
+# when authenticating the local system to the peer. (Note that pppd does
+# not append the domain name to <n>.)
+#name <n>
+
+# Enforce the use of the hostname as the name of the local system for
+# authentication purposes (overrides the name option).
+#usehostname
+
+# Set the assumed name of the remote system for authentication purposes
+# to <n>.
+#remotename <n>
+
+# Add an entry to this system's ARP [Address Resolution Protocol]
+# table with the IP address of the peer and the Ethernet address of this
+# system.
+proxyarp
+
+# Use the system password database for authenticating the peer using
+# PAP. Note: mgetty already provides this option. If this is specified
+# then dialin from users using a script under Linux to fire up ppp wont work.
+# login
+
+# If this option is given, pppd will send an LCP echo-request frame to the
+# peer every n seconds. Normally the peer should respond to the echo-request
+# by sending an echo-reply. This option can be used with the
+# lcp-echo-failure option to detect that the peer is no longer connected.
+lcp-echo-interval 30
+
+# If this option is given, pppd will presume the peer to be dead if n
+# LCP echo-requests are sent without receiving a valid LCP echo-reply.
+# If this happens, pppd will terminate the connection. Use of this
+# option requires a non-zero value for the lcp-echo-interval parameter.
+# This option can be used to enable pppd to terminate after the physical
+# connection has been broken (e.g., the modem has hung up) in
+# situations where no hardware modem control lines are available.
+lcp-echo-failure 4
+
+# Set the LCP restart interval (retransmission timeout) to <n> seconds
+# (default 3).
+#lcp-restart <n>
+
+# Set the maximum number of LCP terminate-request transmissions to <n>
+# (default 3).
+#lcp-max-terminate <n>
+
+# Set the maximum number of LCP configure-request transmissions to <n>
+# (default 10).
+#lcp-max-configure <n>
+
+# Set the maximum number of LCP configure-NAKs returned before starting
+# to send configure-Rejects instead to <n> (default 10).
+#lcp-max-failure <n>
+
+# Set the IPCP restart interval (retransmission timeout) to <n>
+# seconds (default 3).
+#ipcp-restart <n>
+
+# Set the maximum number of IPCP terminate-request transmissions to <n>
+# (default 3).
+#ipcp-max-terminate <n>
+
+# Set the maximum number of IPCP configure-request transmissions to <n>
+# (default 10).
+#ipcp-max-configure <n>
+
+# Set the maximum number of IPCP configure-NAKs returned before starting
+# to send configure-Rejects instead to <n> (default 10).
+#ipcp-max-failure <n>
+
+# Set the PAP restart interval (retransmission timeout) to <n> seconds
+# (default 3).
+#pap-restart <n>
+
+# Set the maximum number of PAP authenticate-request transmissions to
+# <n> (default 10).
+#pap-max-authreq <n>
+
+# Set the maximum time that pppd will wait for the peer to authenticate
+# itself with PAP to <n> seconds (0 means no limit).
+#pap-timeout <n>
+
+# Set the CHAP restart interval (retransmission timeout for
+# challenges) to <n> seconds (default 3).
+#chap-restart <n>
+
+# Set the maximum number of CHAP challenge transmissions to <n>
+# (default 10).
+#chap-max-challenge
+
+# If this option is given, pppd will rechallenge the peer every <n>
+# seconds.
+#chap-interval <n>
+
+# With this option, pppd will accept the peer's idea of our local IP
+# address, even if the local IP address was specified in an option.
+#ipcp-accept-local
+
+# With this option, pppd will accept the peer's idea of its (remote) IP
+# address, even if the remote IP address was specified in an option.
+#ipcp-accept-remote
+
+# Disable the IPXCP and IPX protocols.
+# To let pppd pass IPX packets comment this out --- you'll probably also
+# want to install ipxripd, and have the Internal IPX Network option enabled
+# in your kernel. /usr/doc/HOWTO/IPX-HOWTO.gz contains more info.
+noipx
+
+# Exit once a connection has been made and terminated. This is the default,
+# unless the `persist' or `demand' option has been specified.
+#nopersist
+
+# Do not exit after a connection is terminated; instead try to reopen
+# the connection.
+#persist
+
+# Terminate after n consecutive failed connection attempts.
+# A value of 0 means no limit. The default value is 10.
+#maxfail <n>
+
+# Initiate the link only on demand, i.e. when data traffic is present.
+# With this option, the remote IP address must be specified by the user on
+# the command line or in an options file. Pppd will initially configure
+# the interface and enable it for IP traffic without connecting to the peer.
+# When traffic is available, pppd will connect to the peer and perform
+# negotiation, authentication, etc. When this is completed, pppd will
+# commence passing data packets (i.e., IP packets) across the link.
+#demand
+
+# Specifies that pppd should disconnect if the link is idle for <n> seconds.
+# The link is idle when no data packets (i.e. IP packets) are being sent or
+# received. Note: it is not advisable to use this option with the persist
+# option without the demand option. If the active-filter option is given,
+# data packets which are rejected by the specified activity filter also
+# count as the link being idle.
+#idle <n>
+
+# Specifies how many seconds to wait before re-initiating the link after
+# it terminates. This option only has any effect if the persist or demand
+# option is used. The holdoff period is not applied if the link was
+# terminated because it was idle.
+#holdoff <n>
+
+# Wait for up n milliseconds after the connect script finishes for a valid
+# PPP packet from the peer. At the end of this time, or when a valid PPP
+# packet is received from the peer, pppd will commence negotiation by
+# sending its first LCP packet. The default value is 1000 (1 second).
+# This wait period only applies if the connect or pty option is used.
+#connect-delay <n>
+
+# Packet filtering: for more information, see pppd(8)
+# Any packets matching the filter expression will be interpreted as link
+# activity, and will cause a "demand" connection to be activated, and reset
+# the idle connection timer. (idle option)
+# The filter expression is akin to that of tcpdump(1)
+#active-filter <filter-expression>
+
+# uncomment the line below this if you use PPPoE
+#plugin /usr/lib/pppd/plugins/pppoe.so
+
+# ---<End of File>---
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/rc.local b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/rc.local
new file mode 100755
index 0000000..216ec8e
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/rc.local
@@ -0,0 +1,16 @@
+#!/bin/bash
+#
+# /etc/rc.local: Local multi-user startup script.
+#
+
+#install initial database
+pacman -S --noconfirm mythdb-initial 2>/dev/null
+
+# Set up automatically logged in user (larch live system only)
+if [ -f /.livesys/autologin ]; then
+ cp /.livesys/autologin /tmp/newuser
+fi
+
+# Restore saved sound volume, etc.
+#alsactl restore
+#install initial database
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/rc.local.orig b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/rc.local.orig
new file mode 100755
index 0000000..47b24ef
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/rc.local.orig
@@ -0,0 +1,7 @@
+#!/bin/bash
+#
+# /etc/rc.local: Local multi-user startup script.
+#
+
+# Restore saved sound volume, etc.
+alsactl restore
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/rc.local.shutdown b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/rc.local.shutdown
new file mode 100755
index 0000000..2b5f735
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/rc.local.shutdown
@@ -0,0 +1,7 @@
+#!/bin/bash
+#
+# /etc/rc.local.shutdown: Local shutdown script.
+#
+
+# Save sound volume, etc.
+alsactl store
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/skel/.bash_profile b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/skel/.bash_profile
new file mode 100644
index 0000000..600bd9b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/skel/.bash_profile
@@ -0,0 +1,3 @@
+. $HOME/.bashrc
+
+. /etc/X11/xinit/startx.custom
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/skel/.bashrc b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/skel/.bashrc
new file mode 100644
index 0000000..fcabce0
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/skel/.bashrc
@@ -0,0 +1,3 @@
+alias ls='ls --color=auto'
+PS1='[\u@\h \W]\$ '
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/skel/.xinitrc b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/skel/.xinitrc
new file mode 100644
index 0000000..c6febe5
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/skel/.xinitrc
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+#
+# ~/.xinitrc
+#
+# Executed by startx (run your window manager from here)
+#
+
+# exec gnome-session
+# exec startkde
+# exec startxfce4
+# exec icewm
+# exec openbox
+# exec blackbox
+exec fluxbox
+# exec ratpoison
+# exec dwm
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/skel/.xsession b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/skel/.xsession
new file mode 100755
index 0000000..a16dc0b
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/skel/.xsession
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+#
+# ~/.xsession
+#
+# Executed by xdm/gdm/kdm at login
+#
+
+/bin/bash --login -i ~/.xinitrc
+
diff --git a/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/slim.conf b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/slim.conf
new file mode 100644
index 0000000..35ed579
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/i686-testing-local/rootoverlay/etc/slim.conf
@@ -0,0 +1,79 @@
+# Path, X server and arguments (if needed)
+# Note: -xauth $authfile is automatically appended
+default_path ./:/bin:/usr/bin:/usr/local/bin:/usr/bin
+default_xserver /usr/bin/X
+xserver_arguments -nolisten tcp vt07
+
+# Commands for halt, login, etc.
+halt_cmd /sbin/shutdown -h now
+reboot_cmd /sbin/shutdown -r now
+console_cmd /usr/bin/terminal -x /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
+#suspend_cmd /usr/sbin/suspend
+
+# Full path to the xauth binary
+xauth_path /usr/bin/xauth
+
+# Xauth file for server
+authfile /var/run/slim.auth
+
+
+# Activate numlock when slim starts. Valid values: on|off
+# numlock on
+
+# Hide the mouse cursor (note: does not work with some WMs).
+# Valid values: true|false
+# hidecursor false
+
+# This command is executed after a succesful login.
+# you can place the %session and %theme variables
+# to handle launching of specific commands in .xinitrc
+# depending of chosen session and slim theme
+#
+# NOTE: if your system does not have bash you need
+# to adjust the command according to your preferred shell,
+# i.e. for freebsd use:
+# login_cmd exec /bin/sh - ~/.xinitrc %session
+login_cmd exec /bin/bash -login ~/.xinitrc %session
+
+# Commands executed when starting and exiting a session.
+# They can be used for registering a X11 session with
+# sessreg. You can use the %user variable
+#
+# sessionstart_cmd some command
+# sessionstop_cmd some command
+
+# Start in daemon mode. Valid values: yes | no
+# Note that this can overridden by the command line
+# option "-d"
+# daemon yes
+
+# Available sessions (first one is the default).
+# The current chosen session name is replaced in the login_cmd
+# above, so your login command can handle different sessions.
+# see the xinitrc.sample file shipped with slim sources
+sessions xfce4,icewm,wmaker,blackbox
+
+# Executed when pressing F11 (requires imagemagick)
+screenshot_cmd import -window root /slim.png
+
+# welcome message. Available variables: %host, %domain
+welcome_msg Welcome to %host
+
+# shutdown / reboot messages
+shutdown_msg The system is halting...
+reboot_msg The system is rebooting...
+
+# default user, leave blank or remove this line
+# for avoid pre-loading the username.
+#default_user simone
+
+# current theme, use comma separated list to specify a set to
+# randomly choose from
+current_theme dlarch
+
+# Lock file
+lockfile /var/lock/slim.lock
+
+# Log file
+logfile /var/log/slim.log
+
diff --git a/build_tools/clarch/larch/run/cachepacs b/build_tools/clarch/larch/run/cachepacs
new file mode 100755
index 0000000..f8b5951
--- /dev/null
+++ b/build_tools/clarch/larch/run/cachepacs
@@ -0,0 +1,139 @@
+#! /bin/bash
+#
+# cachepacs - install pkgs to cache dir, but don't isntall
+#
+# Author: James Meyer (based on inpacs)
+
+
+# Working directory:
+TMPDIR=/tmp/inpacs$$
+# File containing (filtered) list of base packages + added packages
+basepacks=${TMPDIR}/basepacks
+
+APP="$( basename $0 )"
+
+exitfunc () {
+ # Remove temporary files
+ rm -rf ${TMPDIR}
+ exit $1
+}
+
+# Default pacman db path (this is a statement, not a configuration, so
+# do not change it!)
+DBPATH="/var/lib/pacman"
+
+# Default package cache, on the target
+TARGETCACHE="${CACHE}"
+# A host or remote package cache:
+HOSTCACHE=""
+# Absolute /path/to/file containing list of packages for 2nd install phase:
+ADDEDPACKS=""
+# Source file for base package list:
+BASEPACKSFILE=""
+# Source file for list of vetoed base packages:
+VETOFILE=""
+# Source directory for pacman database directories:
+DBDIR=""
+# pacman executable:
+PACMANX="pacman -f"
+# pacman configuration file
+PACMANK="/etc/pacman.conf"
+
+checkfile ()
+{
+ f=$( readlink -m $1 )
+ if ! [ -f "${f}" ]; then
+ echo "ERROR: File doesn't exist: ${f}"
+ exitfunc
+ fi
+}
+
+checkdir ()
+{
+ f=$( readlink -m $1 )
+ if ! [ -d "${f}" ]; then
+ echo "ERROR: Directory doesn't exist: ${f}"
+ exitfunc
+ fi
+}
+
+
+while getopts ":k:a:c:b:x:y:P:" Option
+do
+ case ${Option} in
+ k ) checkfile ${OPTARG}
+ PACMANK=${f} ;;
+ a ) checkfile ${OPTARG}
+ CACHEPACKSFILE=${f} ;;
+ y ) checkdir ${OPTARG}
+ DBDIR=${f} ;;
+ P ) checkfile ${OPTARG}
+ PACMANX=${f} ;;
+ #* ) usage ;;
+ esac
+done
+shift $((${OPTIND} - 1))
+INSTLDIR="$1"
+
+
+# grep the cachedir out of the installed pacman.conf
+PCCACHE=`grep CacheDir $INSTLDIR/etc/pacman.conf|cut -d= -f2|cut -d\/ -f2-`
+CACHEDIR=${INSTLDIR}/$PCCACHE
+
+echo "INSTLDIR=${INSTLDIR}"
+echo "PACMANK=${PACMANK}"
+echo "CACHEDIR=${CACHEDIR}"
+echo "DBDIR=${DBDIR}"
+echo "PACMANX=${PACMANX}"
+echo
+
+
+# test if the script is started by root user. If not, exit
+if [ $UID -ne 0 ]; then
+ echo "Only root can run ${APP}"; exitfunc 1
+fi
+
+echo "//"
+echo "// downloading packages to ${CACHEDIR}"
+
+PACMAN="${PACMANX} --config ${PACMANK} --noconfirm"
+
+rm -rf ${TMPDIR}
+mkdir -p ${TMPDIR}
+
+# Helper function for installing a list of packages
+doInstall() {
+ mkdir -p ${INSTLDIR}/sys
+ mkdir -p ${INSTLDIR}/proc
+ mount --bind /sys ${INSTLDIR}/sys
+ mount --bind /proc ${INSTLDIR}/proc
+ ${PACMAN} -r ${INSTLDIR} -Sw $1
+ RET=$?
+ umount ${INSTLDIR}/proc
+ umount ${INSTLDIR}/sys
+ if [ ${RET} -ne 0 ]; then
+ echo "//"
+ echo "// Package $1 FAILED."
+ echo "//"
+ return 1
+ fi
+}
+
+
+PACMAN="${PACMAN} --cachedir $CACHEDIR"
+
+########## GET LIST OF CACHE PACKAGES
+echo "//"
+echo "// ** Getting cache package list ..."
+if [ -n "${CACHEPACKSFILE}" ]; then
+ echo "// from: ${CACHEPACKSFILE}"
+ CACHEPKGS=$( cat ${CACHEPACKSFILE} | grep -v "#" )
+else
+ echo " no cache package file found"
+ exit 0
+fi
+
+
+doInstall "${CACHEPKGS}"
+if [ $? -ne 0 ]; then exitfunc 1; fi
+exitfunc
diff --git a/build_tools/clarch/larch/run/gen_repo b/build_tools/clarch/larch/run/gen_repo
new file mode 100755
index 0000000..86e7b85
--- /dev/null
+++ b/build_tools/clarch/larch/run/gen_repo
@@ -0,0 +1,206 @@
+#!/usr/bin/env python
+
+# gen_repo - build a repository db file from a set of packages
+#
+# Author: Michael Towers (gradgrind) <mt.42@web.de>
+#
+# This file is part of the larch project.
+#
+# larch is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# larch is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with larch; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+#
+#----------------------------------------------------------------------------
+#
+# Version 1.5 // 7th July 2007
+
+import os
+import os.path
+import sys
+import tarfile
+from types import *
+import re
+from subprocess import check_call
+
+# to add a package:
+#check_call(["repo-add", dbfile, pkg, pkg, pkg, ...])
+
+# Regex to remove version comparison from package dependency
+onlyname = re.compile("([^=><]+).*")
+
+def create_db(dbname, packagesdir, dep_ignore_list):
+ os.chdir(packagesdir)
+ dbfile = dbname + ".db.tar.gz"
+ if os.path.exists(dbfile):
+ os.remove(dbfile)
+
+ # Get a list of packages
+ packages = filter(lambda s: s.endswith(".pkg.tar.gz"), os.listdir("."))
+ packages.sort()
+
+ # Use 'repo-add' to build the repo
+ check_call(["repo-add", dbfile] + packages)
+
+ # Make a dict for keeping track of dependencies
+ dep_dict = {}
+ for p in packages:
+ pkg_dict = get_pkg_info(p)
+ pkg_name = pkg_dict["pkgname"]
+ pkg_dbname = pkg_name + "-" + pkg_dict["pkgver"]
+ # Add dependency info to dependency dict
+ for d in pkg_dict["depend"]:
+ # But also need to cater for versioning!!!
+ # I will just ignore it here ...
+ dm = onlyname.match(d)
+ if not dm:
+ if d:
+ print "DEBUG: package %s, dependency = '%s'" % (pkg_name, d)
+ continue
+ d = dm.group(1)
+ if not dep_dict.has_key(d):
+ dep_dict[d] = [False]
+ dep_dict[d].append(pkg_name)
+ # Mark packages provided by this one
+ for p in (pkg_dict["provides"] + [pkg_name]):
+ if dep_dict.has_key(p):
+ dep_dict[p][0] = True
+ else:
+ dep_dict[p] = [True]
+ # Mark packages in ignore list
+ for p in dep_ignore_list:
+ if dep_dict.has_key(p):
+ dep_dict[p][0] = True
+
+ # Now display unsatisfied dependencies
+ # Should add the possibility of declaring a list of packages
+ # available (e.g. the base set, or all those on the live CD ..."
+ print "-------------\nUnsatisfied dependencies:"
+ for d, r in dep_dict.items():
+ if not r[0]:
+ print " ", d, "- needed by: ",
+ for p in r[1:]:
+ print p, " ",
+ print ""
+
+
+
+def get_pkg_info(pkg):
+ tf = tarfile.open(pkg, "r:gz")
+ pkginfo = tf.extractfile(".PKGINFO")
+ pkg_dict = {# the first ones go to 'desc'
+ "pkgname" : None,
+ "pkgver" : None,
+ # from here they are optional, and can occur more than once
+ "depend" : [],
+ "provides" : [],
+ }
+ while True:
+ l = pkginfo.readline().strip()
+ if not l: break
+ if l[0] == "#": continue
+ split3 = l.split(None, 2)
+ while len(split3) < 3: split3.append("")
+ key, eq, value = split3
+ if not pkg_dict.has_key(key): continue
+ val = pkg_dict[key]
+ if val == None:
+ pkg_dict[key] = value
+ continue
+ if not isinstance(val, ListType):
+ print "Unexpected situation ...\n key [oldvalue] <- newvalue"
+ print key, "[%s]" % val, "<-", value
+ sys.exit(1)
+ pkg_dict[key].append(value)
+ pkginfo.close()
+ return pkg_dict
+
+def cat(path):
+ """Python version of 'cat'"""
+ fp = open(path, "r")
+ op = ""
+ for l in fp:
+ op += l
+ fp.close()
+ return op
+
+def usage():
+ print """
+ gen_repo package-dir [repo-name] [-- ignore-list]
+
+ Generate a pacman db file for the packages in package-dir.
+
+ If repo-name is given, this will be used as the name for the repository,
+ otherwise the name of the directory containing the packages will be used.
+
+ All dependencies of the packages in the repository will be listed to
+ standard output, but a list of packages not to be included in this list
+ can be specified:
+ ignore-list should be either a file containing the names of packages
+ not to be listed as dependencies (separated by space or newline), or a
+ directory containing 'package directories', like /var/abs/base or
+ /var/lib/pacman/local
+ """
+ sys.exit(1)
+
+if __name__ == "__main__":
+
+ if len(sys.argv) < 2:
+ usage()
+ if os.getuid() != 0:
+ print "Must be root to run this"
+ sys.exit(1)
+ pkgdir = sys.argv[1]
+ if (len(sys.argv) == 2) or (sys.argv[2] == "--"):
+ dbname = os.path.basename(os.path.abspath(pkgdir))
+ i = 2
+ else:
+ dbname = sys.argv[2]
+ i = 3
+ if len(sys.argv) == i:
+ ignore_list = []
+ elif (len(sys.argv) == i+2) and (sys.argv[i] == "--"):
+ ignore_list = sys.argv[i+1]
+ else:
+ usage()
+ if not os.path.isdir(pkgdir):
+ print "\n1st argument must be a directory"
+ sys.exit(1)
+ print "\nCreating pacman database (%s.db.tar.gz) file in %s" % (dbname, pkgdir)
+
+ if ignore_list:
+ # Get list of packages to be ignored in dependency list
+ if os.path.isfile(ignore_list):
+ # A simple file containing the names of packages to ignore
+ # separated by space or newline.
+ ignore_list = cat(ignore_list).split()
+ elif os.path.isdir(ignore_list):
+ # A directory containing packages or package-directories (like in abs)
+ l = os.listdir(ignore_list)
+ # See if there are packages in this directory
+ lp = filter(lambda s: s.endswith(".pkg.tar.gz"), l)
+ if lp:
+ l = map(lambda s: s.replace(".pkg.tar.gz", ""), lp)
+ re1 = re.compile("(.+)-[^-]+?-[0-9]+")
+ ignore_list = []
+ for f in l:
+ m = re1.match(f)
+ if m:
+ ignore_list.append(m.group(1))
+ else:
+ # the directory contains just the package names (like abs)
+ ignore_list.append(m)
+ else:
+ print "!!! Invalid ignore-list"
+ usage()
+
+ create_db(dbname, pkgdir, ignore_list)
diff --git a/build_tools/clarch/larch/run/getPackageServer b/build_tools/clarch/larch/run/getPackageServer
new file mode 100755
index 0000000..170ea73
--- /dev/null
+++ b/build_tools/clarch/larch/run/getPackageServer
@@ -0,0 +1,275 @@
+#!/usr/bin/env python
+# -*- coding: UTF-8 -*-
+
+# getPackageServer - select a pacman package server
+#
+# Author: Michael Towers <gradgrind[at]online[dot]de>
+#
+# This file is part of the larch project.
+#
+# larch is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# larch is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with larch; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+#
+#----------------------------------------------------------------------------
+#2008.08.10
+
+import getopt, sys, os
+from subprocess import Popen, PIPE, STDOUT
+
+# Build a list structure with areas, subareas and servers
+# [ [area1, [ [subarea1, [server1, server2, ...]],
+# [subarea2, [server1, server2, ...]],
+# ...
+# ]
+# ],
+# [area2, [ [subarea1, [server1, server2, ...]],
+# [subarea2, [server1, server2, ...]],
+# ...
+# ]
+# ],
+# ...
+# ]
+def parseFile(path):
+ areas = []
+ header = True
+ fh = open(path)
+ for line in fh:
+ sline = line.strip()
+ if header:
+ if not sline.startswith('#'):
+ header = False
+ continue
+
+ if not sline:
+ continue
+
+ if sline.startswith('#'):
+ if (sline.find('Server =') >= 0):
+ # Commented out server
+ continue
+ if sline.startswith('##'):
+ # Real comment
+ continue
+ # Otherwise assume this is an area name
+ if sline.startswith('# -'):
+ # New subarea
+ servers = []
+ subarealist = [sline.split('-', 1)[1].strip(), servers]
+ subareas.append(subarealist)
+ else:
+ # New area (if no subarea, use 'all')
+ servers = None
+ subareas = []
+ arealist = [sline[1:].strip(), subareas]
+ areas.append(arealist)
+ continue
+
+ if sline.startswith('Server ='):
+ server = sline.split('=')[1].strip()
+ if (servers == None):
+ servers = []
+ subarealist = ['all', servers]
+ subareas.append(subarealist)
+ servers.append(server)
+
+ else:
+ report("Unexpected line:\n%s\n" % line)
+
+ fh.close()
+ return areas
+
+#Menu using 'dialog'
+#+++++++++++++++++++
+# geometry:
+WIDTH = '76'
+HEIGHT = '20'
+LINES = '8'
+def menu_d(title, text, entries, default=0, header=None):
+ # Note that dialog indexing starts at 1, not 0!
+ i = 1
+ mlist = []
+ for m in entries:
+ mlist += ["%d" % i, "%-60s" % m]
+ i += 1
+ if header:
+ text += "\n " + header
+ cmd = ['dialog', '--title', title,
+ '--default-item', "%d" % (default+1),
+ '--menu', text, HEIGHT, WIDTH, LINES] + mlist
+ #print cmd
+ p = Popen(cmd, stderr=PIPE)
+ output = p.communicate()[1]
+ rc = p.returncode
+
+ if (rc == 0):
+ return int(output)
+ elif (rc == 1):
+ return 0
+ else:
+ assert False
+
+#Menu using plain console
+#++++++++++++++++++++++++
+def menu_c(title, text, entries):
+ t = "***** %s *****" % title
+ print t
+ print "=" * len(t)
+ print text
+ i = 0
+ ilist = "123456789abcdefghijklmnopqrstuvwxyz"
+ for m in entries:
+ print " %s - %-60s" % (ilist[i], m)
+ i += 1
+ print "-----------------------------------------"
+ print " 0 - Go back"
+ k = raw_input("Select: ")
+ if (k == "0"):
+ return 0
+ n = -1
+ if k in "123456789":
+ n = (ord(k) - ord("0"))
+ elif k in "abcdefghijklmnopqrstuvwxyz":
+ n = (ord(k) - ord("a") + 10)
+ assert ((n>0) and (n<=i))
+ return n
+
+def menu(title, text, entries, default=0, header=None):
+ """General menu, uses 'dialog' if available, else plain console.
+ """
+ if console:
+ return menu_c(title, text, entries)
+ else:
+ return menu_d(title, text, entries, default=0, header=None)
+
+import re
+re1 = re.compile(r"/\$repo/os/.*")
+def repoDialog(servers):
+ serverList = parseFile(servers)
+ step = 0
+ while True:
+ if (step == 0):
+ areaList = [a[0] for a in serverList]
+ a1 = menu("Choose Arch Repository",
+ "Select a region",
+ areaList)
+ if (a1 == 0):
+ step = -1
+ break
+ step = 1
+
+ list2 = serverList[a1-1][1]
+ if (len(list2) == 1):
+ a = 1
+ step = 0
+ else:
+ subareaList = [a[0] for a in list2]
+ a = menu("Choose Arch Repository",
+ "Select a sub-region",
+ subareaList)
+ if (a == 0):
+ step = 0
+ continue
+
+ mirrorList = list2[a-1][1]
+ list3 = [re1.sub("", m) for m in mirrorList]
+ a = menu("Choose Arch Repository",
+ "Select a mirror",
+ list3)
+ if (a > 0):
+ break
+
+ if (step >= 0):
+ return mirrorList[a-1]
+ else:
+ return None
+
+
+def usage():
+ print "Usage:"
+ print " getPackageServer [-h] [-i <repository list file>] [<pacman.conf>]"
+ print
+ print "Select a server for Arch Linux packages. The given pacman.conf"
+ print "file will be updated to use the chosen server first. Other entries"
+ print "will not be affected."
+ print
+ print " -h Print this message"
+ print " -i Supply an alternative list of repositories."
+ print " The default is /etc/pacman.d/mirrorlist"
+ print " -c Use plain console for interaction even if"
+ print " 'dialog' is available"
+ print
+ print "If no pacman.conf file is supplied, the chosen repository URL will"
+ print "be output to stdout - mainly for test purposes."
+
+if __name__ == '__main__':
+ def report(text):
+ print text
+
+ repolist = '/etc/pacman.d/mirrorlist'
+
+ # determine whether 'dialog' utility is available
+ p = Popen(["which", "dialog"], stdout=PIPE, stderr=STDOUT)
+ output = p.communicate()[1]
+ console = (p.returncode != 0)
+
+ try:
+ opts, args = getopt.getopt(sys.argv[1:], "i:hc")
+ except getopt.GetoptError:
+ # print help information and exit:
+ usage()
+ sys.exit(1)
+ for o, a in opts:
+ if (o == "-h"):
+ usage()
+ sys.exit()
+ if (o == "-i"):
+ repolist = a
+ if (o == "-c"):
+ console = True
+
+ if (len(args) > 1):
+ # print help information and exit:
+ usage()
+ sys.exit(1)
+
+ mirror = repoDialog(repolist)
+ if not mirror:
+ print "Cancelled"
+ sys.exit(1)
+
+ if (len(args) == 0):
+ print mirror
+ sys.exit(0)
+
+ # Generate pacman.conf file
+ mirror = "Server = " + mirror
+ # The value for @carch@ will be substituted when building the package
+ mirror = mirror.replace("@carch@", "i686")
+ pcfile = args[0]
+ pcfh = open(pcfile, "r")
+ pcf = pcfh.read()
+ pcfh.close()
+ os.remove(pcfile)
+ pcfh = open(pcfile, "w")
+ for line in pcf.splitlines(True):
+ pcfh.write(line)
+ if line.startswith("[core]"):
+ pcfh.write(mirror.replace("$repo", "core") + "\n")
+ elif line.startswith("[extra]"):
+ pcfh.write(mirror.replace("$repo", "extra") + "\n")
+ elif line.startswith("[community]"):
+ pcfh.write(mirror.replace("$repo", "community") + "\n")
+
+ pcfh.close()
+ print "++ Updated %s" % pcfile
diff --git a/build_tools/clarch/larch/run/inpacs b/build_tools/clarch/larch/run/inpacs
new file mode 100755
index 0000000..7bde214
--- /dev/null
+++ b/build_tools/clarch/larch/run/inpacs
@@ -0,0 +1,302 @@
+#! /bin/bash
+#
+# inpacs - install Arch Linux using pacman
+#
+# Author: Michael Towers <gradgrind[at]online[dot]de>
+#
+# This file is part of the larch project.
+#
+# larch is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# larch is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with larch; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+#
+#----------------------------------------------------------------------------
+#2008.08.09
+
+# Note that this has quite a few differences to 'pacin' (now deprecated).
+# Read the usage blurb carefully, for example the options -c, -a (changed
+# defaults), and -x (the format of the veto file has changed slightly).
+
+
+# Working directory:
+TMPDIR=/tmp/inpacs$$
+# File containing (filtered) list of base packages + added packages
+basepacks=${TMPDIR}/basepacks
+
+APP="$( basename $0 )"
+
+exitfunc () {
+ # Remove temporary files
+ rm -rf ${TMPDIR}
+ exit $1
+}
+
+usage () {
+ echo
+ echo "Usage:"
+ echo " ${APP} [-k <path to pacman configuration file> ]"
+ echo " [-a <addedpacksfile>]"
+ echo " [-c <package cache directory>]"
+ echo " [-b <path to base package list file>]"
+ echo " [-x <path to vetofile>]"
+ echo " [-y <path to pacman database directories>]"
+ echo " [-P <path to pacman executable>]"
+ echo " <install path>"
+ echo
+ echo " -k Use the given file instead of /etc/pacman.conf"
+ echo
+ echo " -a Use list of packages in <addedpacksfile> (path/to/file)"
+ echo " for 2nd install phase. If not specified, only do"
+ echo " base installation"
+ echo
+ echo " -c Use given package cache (on host). Default is to"
+ echo " create '${CACHE}' on the target and"
+ echo " use this. If an empty path ('') is given, use the"
+ echo " default on the host."
+ echo
+ echo " -b Use the packages (name only, one per line) in this"
+ echo " file as the base set, installed during the first stage."
+ echo " By default this list will be extracted from the"
+ echo " file 'packages.txt' in the 'core' repository."
+ echo
+ echo " -x Remove the packages (name only, one per line)"
+ echo " in this file from the list of base packages"
+ echo " before doing the first installation stage."
+ echo
+ echo " -y Don't perform 'pacman -Sy' before installing,"
+ echo " but copy the pacman database directories from"
+ echo " the given parent directory."
+ echo
+ echo " -P Use the given pacman executable (possibly"
+ echo " useful on non-Arch systems)."
+ echo
+ echo "${APP} will do an automated Arch Linux installation to the given"
+ echo "installation directory by installing one or two lists of packages."
+ echo "It only installs the packages, without configuration."
+ echo
+ echo "Initially it installs the set of base packages (though this set"
+ echo "is fully configurable). It can then, optionally, install a further"
+ echo "set of additional packages."
+ echo
+ echo "Where it gets the packages from is fully configurable (via"
+ echo "the pacman configuration file and the package cache location)"
+ echo "By previously mounting a remote package cache using sshfs or"
+ echo "NFS it is also possible to use that."
+ echo
+ exitfunc
+}
+
+# Default package cache (this is a statement, not a configuration, so
+# do not change it!)
+CACHE="/var/cache/pacman/pkg"
+# Default pacman db path (this is a statement, not a configuration, so
+# do not change it!)
+DBPATH="/var/lib/pacman"
+
+# Default package cache, on the target
+TARGETCACHE="${CACHE}"
+# A host or remote package cache:
+HOSTCACHE=""
+# Absolute /path/to/file containing list of packages for 2nd install phase:
+ADDEDPACKS=""
+# Source file for base package list:
+BASEPACKSFILE=""
+# Source file for list of vetoed base packages:
+VETOFILE=""
+# Source directory for pacman database directories:
+DBDIR=""
+# pacman executable:
+PACMANX="pacman -f"
+# pacman configuration file
+PACMANK="/etc/pacman.conf"
+
+checkfile ()
+{
+ f=$( readlink -m $1 )
+ if ! [ -f "${f}" ]; then
+ echo "ERROR: File doesn't exist: ${f}"
+ exitfunc
+ fi
+}
+
+checkdir ()
+{
+ f=$( readlink -m $1 )
+ if ! [ -d "${f}" ]; then
+ echo "ERROR: Directory doesn't exist: ${f}"
+ exitfunc
+ fi
+}
+
+while getopts ":k:a:c:b:x:y:P:" Option
+do
+ case ${Option} in
+ k ) checkfile ${OPTARG}
+ PACMANK=${f} ;;
+ a ) checkfile ${OPTARG}
+ ADDEDPACKS=${f} ;;
+ c ) TARGETCACHE=""
+ if [ -n "${OPTARG}" ]; then
+ HOSTCACHE=${OPTARG}
+ checkdir ${HOSTCACHE}
+ HOSTCACHE=${f}
+ fi ;;
+ b ) checkfile ${OPTARG}
+ BASEPACKSFILE=${f} ;;
+ x ) checkfile ${OPTARG}
+ VETOFILE=${f} ;;
+ y ) checkdir ${OPTARG}
+ DBDIR=${f} ;;
+ P ) checkfile ${OPTARG}
+ PACMANX=${f} ;;
+ * ) usage ;;
+ esac
+done
+shift $((${OPTIND} - 1))
+INSTLDIR="$1"
+
+echo "INSTLDIR=${INSTLDIR}"
+echo "PACMANK=${PACMANK}"
+echo "ADDEDPACKS=${ADDEDPACKS}"
+echo "TARGETCACHE=${TARGETCACHE}"
+echo "HOSTCACHE=${HOSTCACHE}"
+echo "BASEPACKSFILE=${BASEPACKSFILE}"
+echo "VETOFILE=${VETOFILE}"
+echo "DBDIR=${DBDIR}"
+echo "PACMANX=${PACMANX}"
+echo
+
+if [ -d "${INSTLDIR}" ]; then
+ # This is not a brilliant test, but at least it will pick up
+ # data files in the destination directory, without being disturbed
+ # by sub-mounts.
+ if [ -n "$( find ${INSTLDIR} ! -type d )" ]; then
+ echo "ERROR: Installation directory (${INSTLDIR}) not empty"
+ exitfunc 1
+ fi
+else
+ echo "ERROR: Installation directory (${INSTLDIR}) does not exist"
+ echo
+ usage
+fi
+
+# test if the script is started by root user. If not, exit
+if [ $UID -ne 0 ]; then
+ echo "Only root can run ${APP}"; exitfunc 1
+fi
+
+echo "//"
+echo "// Installing Arch Linux to directory ${INSTLDIR}"
+
+PACMAN="${PACMANX} --config ${PACMANK} --noconfirm"
+
+rm -rf ${TMPDIR}
+mkdir -p ${TMPDIR}
+
+# Helper function for installing a list of packages
+doInstall() {
+ mkdir -p ${INSTLDIR}/sys
+ mkdir -p ${INSTLDIR}/proc
+ mount --bind /sys ${INSTLDIR}/sys
+ mount --bind /proc ${INSTLDIR}/proc
+ ${PACMAN} -r ${INSTLDIR} -S $( cat $1 )
+ RET=$?
+ umount ${INSTLDIR}/proc
+ umount ${INSTLDIR}/sys
+ if [ ${RET} -ne 0 ]; then
+ echo "//"
+ echo "// Package installation from $1 FAILED."
+ echo "//"
+ return 1
+ fi
+}
+
+if [ -n "${TARGETCACHE}" ]; then
+ # This redirects the package cache to the install target
+ # (change in pacman-3.1)
+ PACMAN="${PACMAN} --cachedir ${INSTLDIR}${TARGETCACHE}"
+elif [ -n "${HOSTCACHE}" ]; then
+ # This redirects the package cache to an existing non-standard one
+ PACMAN="${PACMAN} --cachedir ${HOSTCACHE}"
+fi
+
+mkdir -p ${INSTLDIR}${DBPATH}/sync
+if [ -n "${DBDIR}" ]; then
+ echo "//"
+ echo "// Fetching package dbs from: ${DBDIR}"
+ for repo in $( grep "^\[.*\]" ${PACMANCONF} | sed "s|\[\(.*\)\]|\1|"); do
+ if [ "${repo}" != "options" ]; then
+ echo " ... ${repo}"
+ cp -a ${DBDIR}/sync/${repo} ${INSTLDIR}${DBPATH}/sync
+ fi
+ done
+ echo "//"
+else
+ echo "//"
+ echo "// Synchronising package dbs **************"
+ echo "//"
+ ${PACMAN} -r ${INSTLDIR} -Sy
+fi
+
+########## GET LIST OF BASE PACKAGES
+
+echo "//"
+echo "// ** Getting base package list ..."
+if [ -n "${BASEPACKSFILE}" ]; then
+ echo "// from: ${BASEPACKSFILE}"
+ BASEPKGS=$( cat ${BASEPACKSFILE} | grep -v "#" )
+else
+ BASEPKGS=$( ${PACMAN} -r ${INSTLDIR} -Sg base | sed 's|^base *||')
+fi
+echo "//"
+
+########## LIST OF BASE PACKAGES NOW IN ${BASEPKGS}
+
+########## FILTER LIST OF BASE PACKAGES
+
+# Build basepacks by filtering BASEPKGS
+: > ${basepacks}
+#
+# Filter out vetoed packages
+for p in ${BASEPKGS}; do
+ if [ -z "${VETOFILE}" ] || \
+ ! grep "^[ ]*${p}[ ]*\$" ${VETOFILE} &>/dev/null; then
+ echo ${p} >> ${basepacks}
+ fi
+done
+
+########## FILTERED BASE PACKAGE LIST NOW IN FILE ${basepacks}
+
+if [ -n "${ADDEDPACKS}" ]; then
+ echo "//"
+ echo "// ***** Adding additional packages to install list *****"
+ echo "//"
+ for p in $( cat ${ADDEDPACKS} | grep -v "#" ); do
+ if ! grep "^[ ]*${p}[ ]*\$" ${basepacks} &>/dev/null; then
+ echo ${p} >> ${basepacks}
+ fi
+ done
+fi
+
+echo "//"
+echo "// ************** Installing selected packages **************"
+echo "//"
+doInstall ${basepacks}
+if [ $? -ne 0 ]; then exitfunc 1; fi
+
+echo "//"
+echo "// *** inpacs finished! Arch Linux has been installed to ${INSTLDIR} ***"
+echo "// It is, however, pretty unconfigured ..."
+echo "//"
+
+exitfunc
diff --git a/build_tools/clarch/larch/run/jams.cachepacks.larch.patch b/build_tools/clarch/larch/run/jams.cachepacks.larch.patch
new file mode 100644
index 0000000..2e40e17
--- /dev/null
+++ b/build_tools/clarch/larch/run/jams.cachepacks.larch.patch
@@ -0,0 +1,352 @@
+diff -Nur run.orig/cachepacs run/cachepacs
+--- run.orig/cachepacs 1970-01-01 00:00:00.000000000 +0000
++++ run/cachepacs 2008-08-29 02:34:57.000000000 +0000
+@@ -0,0 +1,139 @@
++#! /bin/bash
++#
++# cachepacs - install pkgs to cache dir, but don't isntall
++#
++# Author: James Meyer (based on inpacs)
++
++
++# Working directory:
++TMPDIR=/tmp/inpacs$$
++# File containing (filtered) list of base packages + added packages
++basepacks=${TMPDIR}/basepacks
++
++APP="$( basename $0 )"
++
++exitfunc () {
++ # Remove temporary files
++ rm -rf ${TMPDIR}
++ exit $1
++}
++
++# Default pacman db path (this is a statement, not a configuration, so
++# do not change it!)
++DBPATH="/var/lib/pacman"
++
++# Default package cache, on the target
++TARGETCACHE="${CACHE}"
++# A host or remote package cache:
++HOSTCACHE=""
++# Absolute /path/to/file containing list of packages for 2nd install phase:
++ADDEDPACKS=""
++# Source file for base package list:
++BASEPACKSFILE=""
++# Source file for list of vetoed base packages:
++VETOFILE=""
++# Source directory for pacman database directories:
++DBDIR=""
++# pacman executable:
++PACMANX="pacman -f"
++# pacman configuration file
++PACMANK="/etc/pacman.conf"
++
++checkfile ()
++{
++ f=$( readlink -m $1 )
++ if ! [ -f "${f}" ]; then
++ echo "ERROR: File doesn't exist: ${f}"
++ exitfunc
++ fi
++}
++
++checkdir ()
++{
++ f=$( readlink -m $1 )
++ if ! [ -d "${f}" ]; then
++ echo "ERROR: Directory doesn't exist: ${f}"
++ exitfunc
++ fi
++}
++
++
++while getopts ":k:a:c:b:x:y:P:" Option
++do
++ case ${Option} in
++ k ) checkfile ${OPTARG}
++ PACMANK=${f} ;;
++ a ) checkfile ${OPTARG}
++ CACHEPACKSFILE=${f} ;;
++ y ) checkdir ${OPTARG}
++ DBDIR=${f} ;;
++ P ) checkfile ${OPTARG}
++ PACMANX=${f} ;;
++ #* ) usage ;;
++ esac
++done
++shift $((${OPTIND} - 1))
++INSTLDIR="$1"
++
++
++# grep the cachedir out of the installed pacman.conf
++PCCACHE=`grep CacheDir $INSTLDIR/etc/pacman.conf|cut -d= -f2|cut -d\/ -f2-`
++CACHEDIR=${INSTLDIR}/$PCCACHE
++
++echo "INSTLDIR=${INSTLDIR}"
++echo "PACMANK=${PACMANK}"
++echo "CACHEDIR=${CACHEDIR}"
++echo "DBDIR=${DBDIR}"
++echo "PACMANX=${PACMANX}"
++echo
++
++
++# test if the script is started by root user. If not, exit
++if [ $UID -ne 0 ]; then
++ echo "Only root can run ${APP}"; exitfunc 1
++fi
++
++echo "//"
++echo "// downloading packages to ${CACHEDIR}"
++
++PACMAN="${PACMANX} --config ${PACMANK} --noconfirm"
++
++rm -rf ${TMPDIR}
++mkdir -p ${TMPDIR}
++
++# Helper function for installing a list of packages
++doInstall() {
++ mkdir -p ${INSTLDIR}/sys
++ mkdir -p ${INSTLDIR}/proc
++ mount --bind /sys ${INSTLDIR}/sys
++ mount --bind /proc ${INSTLDIR}/proc
++ ${PACMAN} -r ${INSTLDIR} -Sw $1
++ RET=$?
++ umount ${INSTLDIR}/proc
++ umount ${INSTLDIR}/sys
++ if [ ${RET} -ne 0 ]; then
++ echo "//"
++ echo "// Package $1 FAILED."
++ echo "//"
++ return 1
++ fi
++}
++
++
++PACMAN="${PACMAN} --cachedir $CACHEDIR"
++
++########## GET LIST OF CACHE PACKAGES
++echo "//"
++echo "// ** Getting cache package list ..."
++if [ -n "${CACHEPACKSFILE}" ]; then
++ echo "// from: ${CACHEPACKSFILE}"
++ CACHEPKGS=$( cat ${CACHEPACKSFILE} | grep -v "#" )
++else
++ echo " no cache package file found"
++ exit 0
++fi
++
++
++doInstall "${CACHEPKGS}"
++if [ $? -ne 0 ]; then exitfunc 1; fi
++exitfunc
+diff -Nur run.orig/inpacs run/inpacs
+--- run.orig/inpacs 2008-08-10 10:51:15.000000000 +0000
++++ run/inpacs 2008-08-29 02:29:31.000000000 +0000
+@@ -116,7 +116,7 @@
+ # Source directory for pacman database directories:
+ DBDIR=""
+ # pacman executable:
+-PACMANX="pacman"
++PACMANX="pacman -f"
+ # pacman configuration file
+ PACMANK="/etc/pacman.conf"
+
+diff -Nur run.orig/jams.larch.patch run/jams.larch.patch
+--- run.orig/jams.larch.patch 1970-01-01 00:00:00.000000000 +0000
++++ run/jams.larch.patch 2008-08-29 02:34:34.000000000 +0000
+@@ -0,0 +1,110 @@
++Only in run/: cachepacs
++diff -wU4 run.orig/inpacs run/inpacs
++--- run.orig/inpacs 2008-08-10 10:51:15.000000000 +0000
+++++ run/inpacs 2008-08-29 02:29:31.000000000 +0000
++@@ -115,9 +115,9 @@
++ VETOFILE=""
++ # Source directory for pacman database directories:
++ DBDIR=""
++ # pacman executable:
++-PACMANX="pacman"
+++PACMANX="pacman -f"
++ # pacman configuration file
++ PACMANK="/etc/pacman.conf"
++
++ checkfile ()
++diff -wU4 run.orig/mklarch run/mklarch
++--- run.orig/mklarch 2008-08-10 10:51:15.000000000 +0000
+++++ run/mklarch 2008-08-29 02:29:45.000000000 +0000
++@@ -22,9 +22,8 @@
++ #
++ #----------------------------------------------------------------------------
++ # 2008.06.22
++
++-
++ # directory to use for building the CD - the installation root
++ # It must have LOTS of space, ~ 4GB for a 700MB CD
++ INSTLDIR=/home/larchroot
++
++@@ -162,8 +161,9 @@
++ fi
++
++ for fd in $( ls -A ${INSTLDIR} ); do
++ rm -rf ${INSTLDIR}/${fd}
+++#lookforme
++ done
++ mkdir -p ${LARCHBUILD}
++
++ ############### Call 'inpacs' to do the installation
++@@ -186,9 +186,8 @@
++ exit 1
++ fi
++ fi
++ INPACSO="${INPACSO} -k pacman.conf"
++-
++ # If necessary add the larch repository to pacman.conf
++ if ! grep '^[larch5]' pacman.conf &>/dev/null; then
++ if [ -d larchrepo ]; then
++ larch5path="file://$( readlink -f larchrepo )"
++@@ -198,14 +197,15 @@
++ sysarch="i686"
++ fi
++ larch5path="${larch5path}/${sysarch}"
++ fi
++- sed "/\[testing\]/ i \
++-[larch5]\n\
++-Server = ${larch5path}\n\
++-#larch5---\n" -i pacman.conf
+++ #sed "/\[testing\]/ i \
+++ echo "[larch5] " >> pacman.conf
+++ echo "Server = ${larch5path}" >> pacman.conf
++ fi
++
+++
+++
++ if ! which pacman &>/dev/null; then
++ if ! [ -x ${startdir}/pacman ]; then
++ echo "ERROR: Couldn't find pacman executable"
++ exit 1
++@@ -217,17 +217,21 @@
++ if [ $? -ne 0 ]; then exit 1; fi
++
++ # Use build version of pacman.conf in live system, without [larch5] repository.
++ # This can be overwritten by a pacman.conf in the profile's overlay.
+++
++ rm -f ${INSTLDIR}/etc/pacman.conf
++-if [ -f pacman.conf.0 ]; then
+++if [ -f ${PROFILE}/pacman.conf ]; then
++ # This file should be used in preference to pacman.conf - it is created by
++ # larch-setup on non-Arch systems before commenting out the 'Include' lines.
++- cp pacman.conf.0 ${INSTLDIR}/etc/pacman.conf
+++ cp ${PROFILE}/pacman.conf ${INSTLDIR}/etc/pacman.conf
++ else
++ sed '/^\[larch5\]/,/^ *$/ d' <pacman.conf >${INSTLDIR}/etc/pacman.conf
++ fi
++
+++cachepacs -a ${PROFILE}/cache_packs $INPACSO -d ${INSTLDIR}
+++
+++
++ # Generate glibc locales
++ if [ -f ${PROFILE}/locale.gen ]; then
++ echo
++ echo "********** Generating locales **********"
++@@ -247,8 +251,17 @@
++ fi
++
++ echo "// ${APP} finished installation of Arch system"
++ echo "//"
+++
+++#run script to post-process the new installation
+++if [ -f ${PROFILE}/post-process.sh ]
+++then
+++ ${PROFILE}/post-process.sh ${INSTLDIR} ${PROFILE}
+++ echo ${PROFILE}/post-process.sh ${INSTLDIR} ${PROFILE}
+++fi
+++
+++
++ if [ -z "${NOLIVE}" ]; then
++ # Get live CD build functions
++ . ${LARCHDATA}/buildlive
++ mklive
+diff -Nur run.orig/mklarch run/mklarch
+--- run.orig/mklarch 2008-08-10 10:51:15.000000000 +0000
++++ run/mklarch 2008-08-29 02:29:45.000000000 +0000
+@@ -23,7 +23,6 @@
+ #----------------------------------------------------------------------------
+ # 2008.06.22
+
+-
+ # directory to use for building the CD - the installation root
+ # It must have LOTS of space, ~ 4GB for a 700MB CD
+ INSTLDIR=/home/larchroot
+@@ -163,6 +162,7 @@
+
+ for fd in $( ls -A ${INSTLDIR} ); do
+ rm -rf ${INSTLDIR}/${fd}
++#lookforme
+ done
+ mkdir -p ${LARCHBUILD}
+
+@@ -187,7 +187,6 @@
+ fi
+ fi
+ INPACSO="${INPACSO} -k pacman.conf"
+-
+ # If necessary add the larch repository to pacman.conf
+ if ! grep '^[larch5]' pacman.conf &>/dev/null; then
+ if [ -d larchrepo ]; then
+@@ -199,12 +198,13 @@
+ fi
+ larch5path="${larch5path}/${sysarch}"
+ fi
+- sed "/\[testing\]/ i \
+-[larch5]\n\
+-Server = ${larch5path}\n\
+-#larch5---\n" -i pacman.conf
++ #sed "/\[testing\]/ i \
++ echo "[larch5] " >> pacman.conf
++ echo "Server = ${larch5path}" >> pacman.conf
+ fi
+
++
++
+ if ! which pacman &>/dev/null; then
+ if ! [ -x ${startdir}/pacman ]; then
+ echo "ERROR: Couldn't find pacman executable"
+@@ -218,15 +218,19 @@
+
+ # Use build version of pacman.conf in live system, without [larch5] repository.
+ # This can be overwritten by a pacman.conf in the profile's overlay.
++
+ rm -f ${INSTLDIR}/etc/pacman.conf
+-if [ -f pacman.conf.0 ]; then
++if [ -f ${PROFILE}/pacman.conf ]; then
+ # This file should be used in preference to pacman.conf - it is created by
+ # larch-setup on non-Arch systems before commenting out the 'Include' lines.
+- cp pacman.conf.0 ${INSTLDIR}/etc/pacman.conf
++ cp ${PROFILE}/pacman.conf ${INSTLDIR}/etc/pacman.conf
+ else
+ sed '/^\[larch5\]/,/^ *$/ d' <pacman.conf >${INSTLDIR}/etc/pacman.conf
+ fi
+
++cachepacs -a ${PROFILE}/cache_packs $INPACSO -d ${INSTLDIR}
++
++
+ # Generate glibc locales
+ if [ -f ${PROFILE}/locale.gen ]; then
+ echo
+@@ -248,6 +252,15 @@
+
+ echo "// ${APP} finished installation of Arch system"
+ echo "//"
++
++#run script to post-process the new installation
++if [ -f ${PROFILE}/post-process.sh ]
++then
++ ${PROFILE}/post-process.sh ${INSTLDIR} ${PROFILE}
++ echo ${PROFILE}/post-process.sh ${INSTLDIR} ${PROFILE}
++fi
++
++
+ if [ -z "${NOLIVE}" ]; then
+ # Get live CD build functions
+ . ${LARCHDATA}/buildlive
diff --git a/build_tools/clarch/larch/run/jams.larch.patch b/build_tools/clarch/larch/run/jams.larch.patch
new file mode 100644
index 0000000..9a96d45
--- /dev/null
+++ b/build_tools/clarch/larch/run/jams.larch.patch
@@ -0,0 +1,110 @@
+Only in run/: cachepacs
+diff -wU4 run.orig/inpacs run/inpacs
+--- run.orig/inpacs 2008-08-10 10:51:15.000000000 +0000
++++ run/inpacs 2008-08-29 02:29:31.000000000 +0000
+@@ -115,9 +115,9 @@
+ VETOFILE=""
+ # Source directory for pacman database directories:
+ DBDIR=""
+ # pacman executable:
+-PACMANX="pacman"
++PACMANX="pacman -f"
+ # pacman configuration file
+ PACMANK="/etc/pacman.conf"
+
+ checkfile ()
+diff -wU4 run.orig/mklarch run/mklarch
+--- run.orig/mklarch 2008-08-10 10:51:15.000000000 +0000
++++ run/mklarch 2008-08-29 02:29:45.000000000 +0000
+@@ -22,9 +22,8 @@
+ #
+ #----------------------------------------------------------------------------
+ # 2008.06.22
+
+-
+ # directory to use for building the CD - the installation root
+ # It must have LOTS of space, ~ 4GB for a 700MB CD
+ INSTLDIR=/home/larchroot
+
+@@ -162,8 +161,9 @@
+ fi
+
+ for fd in $( ls -A ${INSTLDIR} ); do
+ rm -rf ${INSTLDIR}/${fd}
++#lookforme
+ done
+ mkdir -p ${LARCHBUILD}
+
+ ############### Call 'inpacs' to do the installation
+@@ -186,9 +186,8 @@
+ exit 1
+ fi
+ fi
+ INPACSO="${INPACSO} -k pacman.conf"
+-
+ # If necessary add the larch repository to pacman.conf
+ if ! grep '^[larch5]' pacman.conf &>/dev/null; then
+ if [ -d larchrepo ]; then
+ larch5path="file://$( readlink -f larchrepo )"
+@@ -198,14 +197,15 @@
+ sysarch="i686"
+ fi
+ larch5path="${larch5path}/${sysarch}"
+ fi
+- sed "/\[testing\]/ i \
+-[larch5]\n\
+-Server = ${larch5path}\n\
+-#larch5---\n" -i pacman.conf
++ #sed "/\[testing\]/ i \
++ echo "[larch5] " >> pacman.conf
++ echo "Server = ${larch5path}" >> pacman.conf
+ fi
+
++
++
+ if ! which pacman &>/dev/null; then
+ if ! [ -x ${startdir}/pacman ]; then
+ echo "ERROR: Couldn't find pacman executable"
+ exit 1
+@@ -217,17 +217,21 @@
+ if [ $? -ne 0 ]; then exit 1; fi
+
+ # Use build version of pacman.conf in live system, without [larch5] repository.
+ # This can be overwritten by a pacman.conf in the profile's overlay.
++
+ rm -f ${INSTLDIR}/etc/pacman.conf
+-if [ -f pacman.conf.0 ]; then
++if [ -f ${PROFILE}/pacman.conf ]; then
+ # This file should be used in preference to pacman.conf - it is created by
+ # larch-setup on non-Arch systems before commenting out the 'Include' lines.
+- cp pacman.conf.0 ${INSTLDIR}/etc/pacman.conf
++ cp ${PROFILE}/pacman.conf ${INSTLDIR}/etc/pacman.conf
+ else
+ sed '/^\[larch5\]/,/^ *$/ d' <pacman.conf >${INSTLDIR}/etc/pacman.conf
+ fi
+
++cachepacs -a ${PROFILE}/cache_packs $INPACSO -d ${INSTLDIR}
++
++
+ # Generate glibc locales
+ if [ -f ${PROFILE}/locale.gen ]; then
+ echo
+ echo "********** Generating locales **********"
+@@ -247,8 +251,17 @@
+ fi
+
+ echo "// ${APP} finished installation of Arch system"
+ echo "//"
++
++#run script to post-process the new installation
++if [ -f ${PROFILE}/post-process.sh ]
++then
++ ${PROFILE}/post-process.sh ${INSTLDIR} ${PROFILE}
++ echo ${PROFILE}/post-process.sh ${INSTLDIR} ${PROFILE}
++fi
++
++
+ if [ -z "${NOLIVE}" ]; then
+ # Get live CD build functions
+ . ${LARCHDATA}/buildlive
+ mklive
diff --git a/build_tools/clarch/larch/run/larchify b/build_tools/clarch/larch/run/larchify
new file mode 100755
index 0000000..abc0c6d
--- /dev/null
+++ b/build_tools/clarch/larch/run/larchify
@@ -0,0 +1,140 @@
+#! /bin/bash
+#
+# larchify
+#
+# Author: Michael Towers <gradgrind[at]online[dot]de>
+#
+# This file is part of the larch project.
+#
+# larch is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# larch is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with larch; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+#
+#----------------------------------------------------------------------------
+# 2008.02.13
+
+# Default target directory:
+INSTLDIR=larchroot
+
+APP="$( basename $0 )"
+# Get path to larch base directory, via the location of this script
+FULLPATH="$( readlink -f $0 )"
+SCRIPTDIR="$( dirname ${FULLPATH} )"
+LARCHDATA="$( dirname ${SCRIPTDIR} )"
+
+startdir=$( pwd )
+# cd to ensure that the following test works even if '.' is in PATH
+cd /
+apppath="$( which ${APP} 2>/dev/null )"
+if [ $? -ne 0 ] || [ "${apppath}" != "${FULLPATH}" ]; then
+ PATH=${SCRIPTDIR}:${PATH}
+fi
+cd ${startdir}
+
+usage () {
+ echo
+ echo "Usage:"
+ echo " ${APP} -h # Show this message"
+ echo
+ echo " ${APP} [-irugf] [-p <profile directory>] [<target directory>]"
+ echo
+ echo " -p Use the 'profile' in the given directory."
+ echo " The default is the directory 'profile' in the"
+ echo " current directory, if it exists. A build without"
+ echo " a profile is also, in principle, possible."
+ echo " -i Only rebuild iso (or install to USB-stick),"
+ echo " don't regenerate CD data"
+ echo
+ echo " -r Reuse old system and home sqfs"
+ echo " -u Don't build iso, but install to USB-stick instead"
+ echo " -g Use GRUB bootloader (default is isolinux/syslinux)"
+ echo
+ echo " -f No interaction. (not recommended)"
+ echo " The script will just plough straight on and destroy"
+ echo " your file-system without first asking."
+ echo
+ echo "${APP} builds a larch live CD / live USB-stick from the Arch Linux"
+ echo "installation in <target directory>. The default target directory"
+ echo "(which can also be a symlink) is 'larchroot' in the current"
+ echo "working directory."
+ echo
+ echo "A profile is a directory containing all the necessary"
+ echo "configuration details for a larch build. See documentation"
+ echo "and examples."
+ echo
+ exit
+}
+
+PROFILE=""
+DONTASK=""
+USB=""
+GRUB=""
+REISO=""
+REBUILD=""
+REUSE=""
+while getopts ":p:irugf" Option
+do
+ case ${Option} in
+ p ) PROFILE="$( readlink -f ${OPTARG} )" ;;
+ i ) REISO="-i" ;;
+ r ) REUSE="-r" ;;
+ u ) USB="-u" ;;
+ g ) GRUB="-g" ;;
+ f ) DONTASK="-f" ;;
+ * ) usage ;;
+ esac
+done
+shift $((${OPTIND} - 1))
+if [ -n "$1" ]; then
+ INSTLDIR="$1"
+fi
+
+if [ -d "${INSTLDIR}" ]; then
+ if [ "${INSTLDIR}" = "/" ]; then
+ INSTLDIR=""
+ else
+ INSTLDIR=$( readlink -f ${INSTLDIR} )
+ fi
+else
+ echo "ERROR: no target directory supplied"
+ usage
+fi
+LARCHBUILD="${INSTLDIR}/.larch"
+
+if [ -z "${PROFILE}" ]; then
+ if [ -d ${startdir}/profile ]; then
+ PROFILE=${startdir}/profile
+ elif [ -z "${DONTASK}" ]; then
+ read -p "// Build without a profile? [y/N]: " ans
+ # Await yes or no
+ if [ -z "$( echo ${ans} | grep '^ *[yY]' )" ]; then exit 0; fi
+ echo
+ fi
+elif ! [ -d ${PROFILE} ]; then
+ echo "ERROR: profile '${PROFILE}' not found "
+ usage
+fi
+
+# test if the script is started by root user. If not, exit
+if [ $UID -ne 0 ]; then
+ echo "Only root can run ${APP}"; exit 1
+fi
+
+# Get live CD build functions
+. ${LARCHDATA}/buildlive
+
+if [ -n "${REISO}" ]; then
+ buildiso
+else
+ mklive
+fi
diff --git a/build_tools/clarch/larch/run/mklarch b/build_tools/clarch/larch/run/mklarch
new file mode 100755
index 0000000..2a1c574
--- /dev/null
+++ b/build_tools/clarch/larch/run/mklarch
@@ -0,0 +1,281 @@
+#! /bin/bash
+#
+# mklarch
+#
+# Author: Michael Towers <gradgrind[at]online[dot]de>
+#
+# This file is part of the larch project.
+#
+# larch is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# larch is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with larch; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+#
+#----------------------------------------------------------------------------
+# 2008.06.22
+
+# directory to use for building the CD - the installation root
+# It must have LOTS of space, ~ 4GB for a 700MB CD
+INSTLDIR=/home/larchroot
+
+# Default path to larch5 repositories (architecture is sub-directory)
+larch5path="ftp://ftp.berlios.de/pub/larch/larch5.3"
+
+APP=$( basename $0 )
+# Get path to larch base directory, via the location of this script
+FULLPATH=$( readlink -f $0 )
+SCRIPTDIR=$( dirname ${FULLPATH} )
+LARCHDATA=$( dirname ${SCRIPTDIR} )
+
+startdir=$( pwd )
+# cd to ensure that the following test works even if '.' is in PATH
+cd /
+apppath="$( which ${APP} 2>/dev/null )"
+if [ $? -ne 0 ] || [ "${apppath}" != "${FULLPATH}" ]; then
+ PATH=${SCRIPTDIR}:${PATH}
+fi
+cd ${startdir}
+
+usage () {
+ echo
+ echo "Usage:"
+ echo " ${APP} -h # Show this message"
+ echo
+ echo " ${APP} -a [-f] [-p <profile directory>]"
+ echo " [-c <package cache directory>]"
+ echo " [-y <path to pacman database directories>]"
+ echo " [<build directory>]"
+ echo
+ echo " ${APP} [-ugf] [-p <profile directory>]"
+ echo " [-c <package cache directory>]"
+ echo " [-y <path to pacman database directories>]"
+ echo " [<build directory>]"
+ echo
+ echo " -a Stop after installing Arch system (don't build live system)."
+ echo
+ echo " -p Use the 'profile' in the given directory."
+ echo
+ echo " -c Use an alternative package cache directory"
+ echo " (default is /var/cache/pacman/pkg, on host)"
+ echo " -y Use existing pacman package database instead"
+ echo " of performing 'pacman -Sy'."
+ echo
+ echo " -u Don't build iso, but install to USB-stick instead"
+ echo " -g Use GRUB bootloader (default is isolinux/syslinux)"
+ echo
+ echo " -f No interaction. (not recommended)"
+ echo " The script will just plough straight on and destroy"
+ echo " your file-system without first asking."
+ echo
+ echo "${APP} is the master script for the larch live CD / live USB-stick"
+ echo "builder."
+ echo
+ echo "<build directory> is the directory in which all the building will"
+ echo "be done, by default '${INSTLDIR}'"
+ echo
+ echo "A profile is a directory containing all the necessary"
+ echo "configuration details for a larch build. See documentation"
+ echo "and examples."
+ echo
+ echo "If you want to rebuild a live system without reinstalling it"
+ echo "(for example if you make minor changes to the profile which"
+ echo "don't affect the packages, or if you want a USB-stick instead"
+ echo "of a CD, or if writing to the USB-stick failed for some reason)"
+ echo "you should look at the 'larchify' script - run it with the '-h'"
+ echo "option for usage notes."
+ echo
+ exit
+}
+
+pROFILE=""
+DONTASK=""
+NOLIVE=""
+USB=""
+GRUB=""
+PKGCACHE=/var/cache/pacman/pkg
+# Options to 'inpacs':
+INPACSO=""
+while getopts ":p:ac:y:ugf" Option
+do
+ case ${Option} in
+ p ) PROFILE="$( readlink -f ${OPTARG} )" ;;
+ a ) NOLIVE="-a" ;;
+ c ) PKGCACHE="$( readlink -f ${OPTARG} )" ;;
+ y ) INPACSO="${INPACSO} -y $( readlink -f ${OPTARG} )" ;;
+ u ) USB="-u" ;;
+ g ) GRUB="-g" ;;
+ f ) DONTASK="-f" ;;
+ * ) usage ;;
+ esac
+done
+shift $((${OPTIND} - 1))
+if ! [ -d "${PKGCACHE}" ]; then
+ echo "Creating package cache: ${PKGCACHE}"
+ if ! mkdir -p "${PKGCACHE}"; then
+ echo "ERROR: Couldn't create ${PKGCACHE}"
+ exit 1
+ fi
+fi
+INPACSO="${INPACSO} -c ${PKGCACHE}"
+
+if [ -n "$1" ]; then
+ INSTLDIR=$1
+fi
+LARCHBUILD="${INSTLDIR}/.larch"
+
+if [ -z "${PROFILE}" ]; then
+ PROFILE=${startdir}/profile
+fi
+if ! [ -f ${PROFILE}/addedpacks ]; then
+ echo "ERROR: no 'addedpacks' in profile '${PROFILE}'"
+ exit 1
+fi
+
+# test if the script is started by root user. If not, exit
+if [ $UID -ne 0 ]; then
+ echo "Only root can run ${APP}"; exit 1
+fi
+
+echo "//"
+echo "// **********************************************************"
+echo "// This will delete EVERYTHING under"
+echo "//"
+echo "// ${INSTLDIR}"
+echo "//"
+
+if [ -z "${DONTASK}" ]; then
+ echo "// I really mean it ... Are you sure you want to do this?"
+ echo "// **********************************************************"
+ # Await yes or no
+ read -p "// [y/N]: " ans
+ if [ -z "$( echo ${ans} | grep '^ *[yY]' )" ]; then exit 0; fi
+fi
+
+for fd in $( ls -A ${INSTLDIR} ); do
+ rm -rf ${INSTLDIR}/${fd}
+#lookforme
+done
+mkdir -p ${LARCHBUILD}
+
+############### Call 'inpacs' to do the installation
+
+if [ -f ${PROFILE}/basepacks ]; then
+ INPACSO="${INPACSO} -b ${PROFILE}/basepacks"
+fi
+
+if [ -f ${PROFILE}/baseveto ]; then
+ INPACSO="${INPACSO} -x ${PROFILE}/baseveto"
+fi
+
+if [ -f ${PROFILE}/pacman.conf ]; then
+ cp ${PROFILE}/pacman.conf .
+elif ! [ -f pacman.conf ]; then
+ if [ -f /etc/pacman.conf ]; then
+ cp /etc/pacman.conf .
+ else
+ echo "ERROR: Couldn't find pacman.conf"
+ exit 1
+ fi
+fi
+INPACSO="${INPACSO} -k pacman.conf"
+if [ x = y ]
+then
+# If necessary add the larch repository to pacman.conf
+if ! grep '^[larch5]' pacman.conf &>/dev/null; then
+ if [ -d larchrepo ]; then
+ larch5path="file://$( readlink -f larchrepo )"
+ else
+ sysarch="$( uname -m )"
+ if [ "${sysarch}" != "x86_64" ]; then
+ sysarch="i686"
+ fi
+ larch5path="${larch5path}/${sysarch}"
+ fi
+ #sed "/\[testing\]/ i \
+ echo "[larch5] " >> pacman.conf
+ echo "Server = ${larch5path}" >> pacman.conf
+fi
+
+fi
+
+if ! which pacman &>/dev/null; then
+ if ! [ -x ${startdir}/pacman ]; then
+ echo "ERROR: Couldn't find pacman executable"
+ exit 1
+ fi
+ INPACSO="${INPACSO} -P ${startdir}/pacman"
+fi
+echo "checking for pre_process.sh"
+if [ -f ${PROFILE}/pre-process.sh ]
+then
+ echo "Running pre-process script"
+ cd ${PROFILE}
+ ./pre-process.sh
+ cd -
+
+else
+ echo "No pre_process"
+fi
+
+inpacs -a ${PROFILE}/addedpacks ${INPACSO} ${INSTLDIR}
+if [ $? -ne 0 ]; then exit 1; fi
+
+# Use build version of pacman.conf in live system, without [larch5] repository.
+# This can be overwritten by a pacman.conf in the profile's overlay.
+
+rm -f ${INSTLDIR}/etc/pacman.conf
+if [ -f ${PROFILE}/pacman.conf ]; then
+ # This file should be used in preference to pacman.conf - it is created by
+ # larch-setup on non-Arch systems before commenting out the 'Include' lines.
+ cp ${PROFILE}/pacman.conf ${INSTLDIR}/etc/pacman.conf
+else
+ sed '/^\[larch5\]/,/^ *$/ d' <pacman.conf >${INSTLDIR}/etc/pacman.conf
+fi
+
+cachepacs -a ${PROFILE}/cache_packs $INPACSO -d ${INSTLDIR}
+
+
+# Generate glibc locales
+if [ -f ${PROFILE}/locale.gen ]; then
+ echo
+ echo "********** Generating locales **********"
+ echo
+ cat ${PROFILE}/locale.gen ${INSTLDIR}/etc/locale.gen >${INSTLDIR}/etc/locale.gen_new
+ mv -f ${INSTLDIR}/etc/locale.gen_new ${INSTLDIR}/etc/locale.gen
+ chroot ${INSTLDIR} usr/sbin/locale-gen
+fi
+
+# Generate ssh keys
+ssh_init ${INSTLDIR}
+
+# Set up a symlink to the installation for 'larchify'
+rm -f larchroot && ln -sf ${INSTLDIR} ${startdir}/larchroot
+if [ $? -ne 0 ]; then
+ echo "WARNING: Couldn't create 'larchroot' symlink"
+fi
+
+echo "// ${APP} finished installation of Arch system"
+echo "//"
+
+#run script to post-process the new installation
+if [ -f ${PROFILE}/post-process.sh ]
+then
+ ${PROFILE}/post-process.sh ${INSTLDIR} ${PROFILE}
+ echo ${PROFILE}/post-process.sh ${INSTLDIR} ${PROFILE}
+fi
+
+
+if [ -z "${NOLIVE}" ]; then
+ # Get live CD build functions
+ . ${LARCHDATA}/buildlive
+ mklive
+fi
diff --git a/build_tools/clarch/larch/run/myusbboot b/build_tools/clarch/larch/run/myusbboot
new file mode 100644
index 0000000..29f2084
--- /dev/null
+++ b/build_tools/clarch/larch/run/myusbboot
@@ -0,0 +1,89 @@
+#! /bin/bash
+#
+# usbboot
+#
+# Author: Michael Towers <gradgrind[at]online[dot]de>
+#
+# This file is part of the larch project.
+#
+# larch is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# larch is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with larch; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+#
+#----------------------------------------------------------------------------
+# 2008.06.22
+
+APP="$( basename $0 )"
+
+usage () {
+ echo
+ echo "Usage:"
+ echo " ${APP} [<Arch installation root directory>]"
+ echo
+ echo " Prepare a bootable USB-stick from a larch build."
+ echo " If no Arch directory is given, '/' is assumed."
+ exit 1
+}
+
+if [ -n "$1" ]; then
+ AINSTALL="$( readlink -f $1 )"
+else
+ AINSTALL=""
+fi
+CDDATA=${AINSTALL}/.larch/cd
+
+if [ ! -f ${CDDATA}/system.sqf ]; then
+ echo "ERROR: ${CDDATA} does not contain larch cd data"
+ usage
+fi
+if [ ! -f ${CDDATA}/isolinux/isolinux.cfg ]; then
+ echo "ERROR: isolinux data not in ${CDDATA}/isolinux"
+ exit 1
+fi
+
+if ! [ -f ${AINSTALL}/usr/bin/syslinux ]; then
+ echo "ERROR: syslinux not found -"
+ echo " it must be installed on live system"
+ return 1
+fi
+
+# test if the script is started by root user. If not, exit
+if [ $UID -ne 0 ]; then
+ echo "Only root can run ${APP}"; exit 1
+fi
+
+
+echo "// Copying the boot sector"
+dd if=${AINSTALL}/usr/lib/syslinux/mbr.bin of=${dev}
+
+echo "// Copying the files"
+stick=/tmp/usbstick
+if [ -f ${stick} ]
+then
+ rm -rf ${stick}
+fi
+ mkdir -p ${stick}
+
+if [ $? != 0 ]; then
+ echo "ERROR: Failed to mount device, quitting"
+ exit 3
+fi
+
+cp -a ${CDDATA}/* ${stick}
+mv ${stick}/isolinux ${stick}/syslinux
+mv ${stick}/syslinux/isolinux.cfg ${stick}/syslinux/syslinux.cfg
+rm -f ${stick}/syslinux/isolinux*
+
+echo "//"
+echo "// Done!"
+echo "// If all went well your usb stick should now be a bootable larch system"
diff --git a/build_tools/clarch/larch/run/ssh_init b/build_tools/clarch/larch/run/ssh_init
new file mode 100755
index 0000000..66a716f
--- /dev/null
+++ b/build_tools/clarch/larch/run/ssh_init
@@ -0,0 +1,18 @@
+#! /bin/sh
+
+DESTDIR=$1
+echo
+echo "************** Generating ssh keys to ${DESTDIR}/etc/ssh **************"
+echo
+# ssh initialisation - done here so that it doesn't need to be done
+# when the cd boots
+if [ -x ${DESTDIR}/usr/sbin/sshd ]; then
+ # Do it on the newly built system, in case the host doesn't have ssh
+ mount --bind /dev ${DESTDIR}/dev
+ chroot ${DESTDIR} bin/sh -c "{\
+ /usr/bin/ssh-keygen -t rsa1 -N \"\" -f /etc/ssh/ssh_host_key >/dev/null;\
+ /usr/bin/ssh-keygen -t rsa -N \"\" -f /etc/ssh/ssh_host_rsa_key >/dev/null;\
+ /usr/bin/ssh-keygen -t dsa -N \"\" -f /etc/ssh/ssh_host_dsa_key >/dev/null;\
+ }"
+ umount ${DESTDIR}/dev
+fi
diff --git a/build_tools/clarch/larch/run/usb2bootiso b/build_tools/clarch/larch/run/usb2bootiso
new file mode 100755
index 0000000..cb2190a
--- /dev/null
+++ b/build_tools/clarch/larch/run/usb2bootiso
@@ -0,0 +1,66 @@
+#!/bin/bash
+
+# usb2bootiso
+
+# For use after a completed run of mklarch or larchify which has produced
+# a larch USB-stick with syslinux boot. It will generate a boot iso for
+# use on computers which can't boot from the USB-stick.
+
+# $1 is the base of the 'livified' Arch installation (larchroot)
+# If no path is given, a directory (or symlink) 'larchroot' in the
+# working directory will be used.
+#===================================================================
+# 2008.06.22
+
+APP="$( basename $0 )"
+# Get path to larch base directory, via the location of this script
+FULLPATH="$( readlink -f $0 )"
+SCRIPTDIR="$( dirname ${FULLPATH} )"
+
+mkiso ()
+{
+ mkisofs -r -l $1 \
+ -no-emul-boot -boot-load-size 4 -boot-info-table \
+ -input-charset=UTF-8 \
+ -publisher "designed by gradgrind, licence: GPL" \
+ -A "larch-5" \
+ -o "bootcd.iso" "${CDDATA}"
+
+ if [ $? -eq 0 ]; then
+ echo "// Your ISO has been created as bootcd.iso"
+ else
+ echo "ERROR: iso build failed" 1>&2
+ return 1
+ fi
+}
+
+if [ -z "$1" ]; then
+ if [ -d larchroot ]; then
+ MP="$( readlink -f larchroot )"
+ else
+ echo "Must pass Arch root directory as argument"
+ exit 1
+ fi
+else
+ if ! [ -d $1 ]; then
+ echo "$1 is not a directory"
+ exit 1
+ fi
+ MP="$( readlink -f $1 )"
+fi
+
+CDDATA=$( pwd )/bootcd
+rm -rf ${CDDATA}
+mkdir -p ${CDDATA}/isolinux
+
+if ! cp -r ${MP}/.larch/cd/isolinux ${CDDATA} &>/dev/null; then
+ echo "No larch boot files found at ${MP}/.larch/cd/isolinux"
+ exit 1
+fi
+if ! cp ${MP}/usr/lib/syslinux/isolinux.bin ${CDDATA}/isolinux; then
+ echo "Couldn't find isolinux.bin"
+ exit 1
+fi
+
+mkiso "-b isolinux/isolinux.bin -c isolinux/isolinux.boot"
+
diff --git a/build_tools/clarch/larch/run/usb2iso b/build_tools/clarch/larch/run/usb2iso
new file mode 100755
index 0000000..885f726
--- /dev/null
+++ b/build_tools/clarch/larch/run/usb2iso
@@ -0,0 +1,78 @@
+#!/bin/sh
+
+# usb2iso
+
+# For use (especially) after a usb-stick larch system (syslinux based
+# only at the moment) has been modified, this will generate a bootable
+# iso from it.
+
+# WARNING - a lot of space is needed as the whole cd content must be copied.
+
+# $1 is the mount point of the usb-stick. If none use /.livesys/medium
+# (i.e. assuming it is being run from a larch system).
+# The iso will be generated in the current working directory.
+#===================================================================
+# 2008.04.21
+
+ISOLINUXBIN=/usr/lib/syslinux/isolinux.bin
+
+APP="$( basename $0 )"
+# Get path to larch base directory, via the location of this script
+FULLPATH="$( readlink -f $0 )"
+SCRIPTDIR="$( dirname ${FULLPATH} )"
+
+mkiso ()
+{
+ mkisofs -r -l $1 \
+ -no-emul-boot -boot-load-size 4 -boot-info-table \
+ -input-charset=UTF-8 \
+ -publisher "designed by gradgrind, licence: GPL" \
+ -A "larch-5" \
+ -o "livecd.iso" "${CDDATA}"
+
+ if [ $? -eq 0 ]; then
+ echo "// Your ISO has been created as livecd.iso"
+ else
+ echo "ERROR: iso build failed" 1>&2
+ return 1
+ fi
+}
+
+if [ -z "$1" ]; then
+ if [ -d /.livesys/medium/larch ]; then
+ MP=/.livesys/medium
+ else
+ echo "Must pass usb-stick mount-point as argument"
+ exit 1
+ fi
+else
+ if ! [ -d "$1/larch" ]; then
+ echo "No larch system found at $1"
+ exit 1
+ fi
+ MP="$( readlink -f $1 )"
+fi
+
+CDDATA=$( pwd )/bootcd
+rm -rf ${CDDATA}
+mkdir -p ${CDDATA}
+
+if ! cp -r ${MP}/syslinux ${CDDATA} &>/dev/null; then
+ echo "No larch boot files found at ${MP}/syslinux"
+ exit 1
+fi
+mv ${CDDATA}/syslinux ${CDDATA}/isolinux
+mv ${CDDATA}/isolinux/syslinux.cfg ${CDDATA}/isolinux/isolinux.cfg
+if ! cp ${ISOLINUXBIN} ${CDDATA}/isolinux; then
+ echo "Couldn't find isolinux.bin"
+ exit 1
+fi
+
+echo "Copying data, this could take a while"
+cp -r ${MP}/larch ${CDDATA}
+cp ${MP}/system.sqf ${CDDATA}
+cp ${MP}/mods.sqf ${CDDATA}
+cp ${MP}/overlay.ovl ${CDDATA}
+
+mkiso "-b isolinux/isolinux.bin -c isolinux/isolinux.boot"
+
diff --git a/build_tools/clarch/larch/run/usbboot b/build_tools/clarch/larch/run/usbboot
new file mode 100755
index 0000000..dd7f3fe
--- /dev/null
+++ b/build_tools/clarch/larch/run/usbboot
@@ -0,0 +1,100 @@
+#! /bin/bash
+#
+# usbboot
+#
+# Author: Michael Towers <gradgrind[at]online[dot]de>
+#
+# This file is part of the larch project.
+#
+# larch is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# larch is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with larch; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+#
+#----------------------------------------------------------------------------
+# 2008.06.22
+
+APP="$( basename $0 )"
+
+usage () {
+ echo
+ echo "Usage:"
+ echo " ${APP} [<Arch installation root directory>]"
+ echo
+ echo " Prepare a bootable USB-stick from a larch build."
+ echo " If no Arch directory is given, '/' is assumed."
+ exit 1
+}
+
+if [ -n "$1" ]; then
+ AINSTALL="$( readlink -f $1 )"
+else
+ AINSTALL=""
+fi
+
+STARTDIR=${2}
+
+CDDATA=${AINSTALL}/.larch/cd
+
+if [ ! -f ${CDDATA}/system.sqf ]; then
+ echo "ERROR: ${CDDATA} does not contain larch cd data"
+ usage
+fi
+if [ ! -f ${CDDATA}/isolinux/isolinux.cfg ]; then
+ echo "ERROR: isolinux data not in ${CDDATA}/isolinux"
+ exit 1
+fi
+
+if ! [ -f ${AINSTALL}/usr/bin/syslinux ]; then
+ echo "ERROR: syslinux not found -"
+ echo " it must be installed on live system"
+ return 1
+fi
+
+# test if the script is started by root user. If not, exit
+if [ $UID -ne 0 ]; then
+ echo "Only root can run ${APP}"; exit 1
+fi
+
+
+
+
+echo "// Copying the files"
+stick=/tmp/usbstick
+if [ -d ${stick} ]
+then
+ echo "removing $stick"
+ rm -rf ${stick}
+fi
+ mkdir -p ${stick}
+
+if [ $? != 0 ]; then
+ echo "ERROR: Failed to mount device, quitting"
+ exit 3
+fi
+
+cp -a ${CDDATA}/* ${stick}
+
+
+mv ${stick}/isolinux ${stick}/syslinux
+mv ${stick}/syslinux/isolinux.cfg ${stick}/syslinux/syslinux.cfg
+rm -f ${stick}/syslinux/isolinux*
+
+#copy in the important stuff
+cp -a ${AINSTALL}/usr/lib/syslinux/* ${stick}/syslinux
+cp -a ${AINSTALL}/usr/bin/syslinux ${stick}/syslinux/syslinux
+cp -a ${STARTDIR}/bootusb/* ${stick}/syslinux
+
+echo "copy ${stick}/* to a usb drive and run syslinux/bootinst.sh"
+
+
+
diff --git a/build_tools/clarch/larch/run/usbboot.orig b/build_tools/clarch/larch/run/usbboot.orig
new file mode 100755
index 0000000..b1f41b4
--- /dev/null
+++ b/build_tools/clarch/larch/run/usbboot.orig
@@ -0,0 +1,155 @@
+#! /bin/bash
+#
+# usbboot
+#
+# Author: Michael Towers <gradgrind[at]online[dot]de>
+#
+# This file is part of the larch project.
+#
+# larch is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# larch is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with larch; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+#
+#----------------------------------------------------------------------------
+# 2008.06.22
+
+APP="$( basename $0 )"
+
+usage () {
+ echo
+ echo "Usage:"
+ echo " ${APP} [<Arch installation root directory>]"
+ echo
+ echo " Prepare a bootable USB-stick from a larch build."
+ echo " If no Arch directory is given, '/' is assumed."
+ exit 1
+}
+
+if [ -n "$1" ]; then
+ AINSTALL="$( readlink -f $1 )"
+else
+ AINSTALL=""
+fi
+CDDATA=${AINSTALL}/.larch/cd
+
+if [ ! -f ${CDDATA}/system.sqf ]; then
+ echo "ERROR: ${CDDATA} does not contain larch cd data"
+ usage
+fi
+if [ ! -f ${CDDATA}/isolinux/isolinux.cfg ]; then
+ echo "ERROR: isolinux data not in ${CDDATA}/isolinux"
+ exit 1
+fi
+
+if ! [ -f ${AINSTALL}/usr/bin/syslinux ]; then
+ echo "ERROR: syslinux not found -"
+ echo " it must be installed on live system"
+ return 1
+fi
+
+echo "//"
+echo "// **********************************************************"
+echo "//"
+echo "// ${APP} will prepare a bootable USB stick with your"
+echo "// previously prepared larch data from ${CDDATA}"
+echo "//"
+echo "// Please insert your USB stick, which should already be"
+echo "// appropriately partitioned."
+echo "//"
+echo "// **********************************************************"
+echo "//"
+
+# test if the script is started by root user. If not, exit
+if [ $UID -ne 0 ]; then
+ echo "Only root can run ${APP}"; exit 1
+fi
+
+echo "// Do you want to continue?"
+# Await yes or no
+read -p "// [y/N]: " ans
+if [ -z "`echo ${ans} | grep '^ *[yY]'`" ]; then exit 2; fi
+
+echo "//"
+echo "// Enter the number of the partition you wish to use (0 to quit):"
+
+devices=/tmp/devices$$
+:> ${devices}
+i=0
+sfdisk -d | grep "/dev/sd[a-z][1-4] " | grep -v "Id= [05]" | \
+ sed "s|\(.*\):.*size=\( *[0-9]*\).*|\1 \2|" | while read device sectors; do
+
+ i=$(( ${i} + 1 ))
+ echo "${device}" >>${devices}
+ echo "// ${i}: ${device} $(( ${sectors} / 2048 )) MiB"
+done
+
+while true; do
+ read -p "// Device: " d
+ if [ "${d}" -eq "0" ]; then exit 1; fi
+ i=0
+ { while read device; do
+ i=$(( ${i} + 1 ))
+ if [ "${d}" -eq "${i}" ]; then break 2; fi
+ done } <${devices}
+done
+
+rm ${devices}
+
+echo "//"
+read -p "// \"${device}\" will now be prepared. Continue? [y/N]: " ans
+if [ -z "`echo ${ans} | grep '^ *[yY]'`" ]; then exit 1; fi
+
+echo "//"
+echo "// Formatting ${device} (vfat)"
+dev=${device:0:8}
+part=${device:8}
+sfdisk ${dev} -N${part} <<EOF
+,,0e,*
+EOF
+
+dd if=/dev/zero of=${device} bs=512 count=1
+mkfs.vfat ${device}
+
+echo "// Copying the boot sector"
+dd if=${AINSTALL}/usr/lib/syslinux/mbr.bin of=${dev}
+
+echo "// Copying the files"
+stick=/tmp/mnt
+mkdir -p ${stick}
+umount ${device} &>/dev/null
+mount ${device} ${stick}
+if [ $? != 0 ]; then
+ echo "ERROR: Failed to mount device, quitting"
+ exit 3
+fi
+cp -a ${CDDATA}/* ${stick}
+mv ${stick}/isolinux ${stick}/syslinux
+mv ${stick}/syslinux/isolinux.cfg ${stick}/syslinux/syslinux.cfg
+rm -f ${stick}/syslinux/isolinux*
+
+umount ${stick}
+
+echo "// Running syslinux"
+if [ -n "${AINSTALL}" ]; then
+ mount --bind /dev ${AINSTALL}/dev
+ mount --bind /proc ${AINSTALL}/proc
+ chroot ${AINSTALL} syslinux ${device}
+ umount ${AINSTALL}/dev
+ umount ${AINSTALL}/proc
+else
+ syslinux ${device}
+fi
+
+echo "//"
+echo "// Done!"
+echo "// If all went well your usb stick should now be a bootable larch system"
diff --git a/build_tools/clarch/larch/run/usbboot_grub b/build_tools/clarch/larch/run/usbboot_grub
new file mode 100755
index 0000000..2f837d5
--- /dev/null
+++ b/build_tools/clarch/larch/run/usbboot_grub
@@ -0,0 +1,180 @@
+#! /bin/bash
+#
+# usbboot_grub
+#
+# Author: Michael Towers <gradgrind[at]online[dot]de>
+
+# This file is part of the larch project.
+#
+# larch is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# larch is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with larch; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+#
+#----------------------------------------------------------------------------
+# 2008.06.22
+
+APP="$( basename $0 )"
+
+usage () {
+ echo
+ echo "Usage:"
+ echo " ${APP} [<Arch installation root directory>]"
+ echo
+ echo " Prepare a bootable USB-stick from a larch build."
+ echo " If no Arch directory is given, '/' is assumed."
+ exit 1
+}
+
+if [ -n "$1" ]; then
+ AINSTALL="$( readlink -f $1 )"
+ if [ ! -x ${AINSTALL}/sbin/grub ]; then
+ echo "ERROR: ${AINSTALL}/sbin/grub not found"
+ exit 1
+ fi
+else
+ AINSTALL=""
+ if ! which grub &>/dev/null; then
+ echo "ERROR: grub not found"
+ exit 1
+ fi
+fi
+CDDATA=${AINSTALL}/.larch/cd
+
+if [ ! -f ${CDDATA}/system.sqf ]; then
+ echo "ERROR: ${CDDATA} does not contain larch cd data"
+ usage
+fi
+if [ ! -f ${CDDATA}/boot/grub/stage1 ]; then
+ echo "ERROR: grub data not in ${CDDATA}/boot/grub"
+ exit 1
+fi
+
+echo "//"
+echo "// **********************************************************"
+echo "//"
+echo "// ${APP} will prepare a bootable USB stick with your"
+echo "// previously prepared larch data from ${CDDATA}"
+echo "//"
+echo "// As an alternative it might render your system unbootable."
+echo "// If that thought disturbs you please don't continue."
+echo "//"
+echo "// This program is DANGEROUS - you have been warned!!!"
+echo "//"
+echo "// If you are too cool to be concerned about the warnings,"
+echo "// please insert your USB stick, which should already be"
+echo "// appropriately partitioned."
+echo "//"
+echo "// **********************************************************"
+echo "//"
+
+# test if the script is started by root user. If not, exit
+if [ $UID -ne 0 ]; then
+ echo "Only root can run ${APP}"; exit 1
+fi
+
+echo "//"
+echo "// Enter the number of the partition you wish to use (0 to quit):"
+
+devices=/tmp/devices$$
+:> ${devices}
+i=0
+sfdisk -d | grep "/dev/sd[a-z][1-4] " | grep -v "Id= [05]" | \
+ sed "s|\(.*\):.*size=\( *[0-9]*\).*|\1 \2|" | while read device sectors; do
+
+ i=$(( ${i} + 1 ))
+ echo "${device}" >>${devices}
+ echo "// ${i}: ${device} $(( ${sectors} / 2048 )) MiB"
+done
+
+while true; do
+ read -p "// Device: " d
+ if [ "${d}" -eq "0" ]; then exit 1; fi
+ i=0
+ { while read device; do
+ i=$(( ${i} + 1 ))
+ if [ "${d}" -eq "${i}" ]; then break 2; fi
+ done } <${devices}
+done
+
+rm ${devices}
+
+echo "//"
+read -p "// \"${device}\" will now be prepared. Continue? [y/N]: " ans
+if [ -z "`echo ${ans} | grep '^ *[yY]'`" ]; then exit 1; fi
+
+echo "//"
+echo "// Formatting ${device} (ext2)"
+dev=${device:0:8}
+part=${device:8}
+sfdisk ${dev} -N${part} <<EOF
+,,L,*
+EOF
+
+mke2fs ${device}
+
+echo "// Copying the files"
+stick=/tmp/mnt
+mkdir -p ${stick}
+umount ${device} &>/dev/null
+mount ${device} ${stick}
+if [ $? != 0 ]; then
+ echo "ERROR: Failed to mount device, quitting"
+ exit 3
+fi
+cp -a ${CDDATA}/* ${stick}
+umount ${stick}
+
+# Convert the device and partion to grub syntax
+grubdevice ()
+{
+## The contents of device.map look something like this:
+#(fd0) /dev/fd0
+#(hd0) /dev/hda
+#(hd1) /dev/sda
+gdev="$( cat ${AINSTALL}${dmap} | grep "${dev}" | cut -f1 | tr -d "()" )"
+gpart=$(( ${part} - 1 ))
+echo "// Installing GRUB to (${gdev}), root (${gdev},${gpart})"
+}
+
+dmap=/tmp/device.map
+rm -f ${AINSTALL}${dmap}
+if [ -n "${AINSTALL}" ]; then
+ # First try to get a device mapping
+ mount --bind /dev ${AINSTALL}/dev
+ echo "quit" | chroot ${AINSTALL} grub --no-floppy --device-map=${dmap} --batch
+ grubdevice
+ # Now actually install grub
+ # As far as I can tell, the extra options to grub are not needed here
+ chroot ${AINSTALL} grub --batch <<EOT
+root (${gdev},${gpart})
+setup (${gdev})
+quit
+EOT
+ umount ${AINSTALL}/dev
+else
+ # First try to get a device mapping
+ echo "quit" | grub --no-floppy --device-map=${dmap} --batch
+ grubdevice
+ # Now actually install grub
+ # As far as I can tell, the extra options to grub are not needed here
+ grub --batch <<EOT
+root (${gdev},${gpart})
+setup (${gdev})
+quit
+EOT
+fi
+rm -f ${AINSTALL}${dmap}
+
+echo "//"
+echo "// Done!"
+echo "// If all went well your usb stick should now be a bootable larch system"
diff --git a/build_tools/clarch/larch/run/xpack b/build_tools/clarch/larch/run/xpack
new file mode 100755
index 0000000..0ebe158
--- /dev/null
+++ b/build_tools/clarch/larch/run/xpack
@@ -0,0 +1,122 @@
+#! /bin/bash
+#
+# xpack - simple tool for handling self-extracting archives
+#
+# Author: Michael Towers <gradgrind[at]online[dot]de>
+#
+# xpack is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# xpack is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with xpack; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+#
+#----------------------------------------------------------------------------
+#
+# version 1.1
+
+# This script serves both as packer and extracter, according to the name used
+# to invoke it. When invoked as 'xpack', it will copy itself to the archive
+# file (passed on the command line) and then append a tar.gz archive of the
+# source directory (passed on the command line). E.g.
+# ./xpack path/to/archive xarchive
+# To extract the archive, simply run the resulting archive file, passing a
+# directory into which it should be unpacked on the command line. E.g.
+# ./xarchive newpath/to/directory
+# or, bash xarchive newpath/to/directory
+
+if [ "$( basename "$0" )" != "xpack" ]; then
+ # extract archive
+ if [ ! -d "$1" ]; then
+ echo "ERROR: Destination directory not found"
+ echo "Usage:"
+ echo " ${APP} <directory> - Unpack this archive to <directory> (which must exist)"
+ exit 1
+ fi
+
+# The following lines allow the implementation of the '-r' option to xpack.
+# The version of this script which is copied to the generated archive file will,
+# in that case, have the '#+#' removed.
+#+# # test if the script is started by root user. If not, exit
+#+# if [ $UID -ne 0 ]; then
+#+# echo "Only root can run $0"; exit 1
+#+# fi
+
+ echo "Extracting archive to $1"
+ let "SKIP = $( grep --binary-files=text -n -m 1 "^#__ARCHIVE__" "$0" | cut -d ':' -f 1 ) + 1"
+
+ tail -n +$SKIP "$0" | tar -xzC "$1"
+ exit 0
+fi
+
+usage () {
+ echo
+ echo "Usage:"
+ echo " ${APP} [-dr] <directory> <archive file>"
+ echo " Create self-extracting archive from <directory>"
+ echo
+ echo " -d Don't include the base directory"
+ echo " -r Require root permissions for extracting"
+ echo
+ exit 1
+}
+
+NOBASE=""
+ROOT=""
+while getopts ":dr" Option
+do
+ case ${Option} in
+ d ) NOBASE="-d" ;;
+ r ) ROOT="-r" ;;
+ * ) usage ;;
+ esac
+done
+shift $((${OPTIND} - 1))
+
+if [ ! -d "$1" ]; then
+ echo "ERROR: Source directory not found"
+ usage
+fi
+
+if [ -e "$2" ]; then
+ echo "ERROR: Destination file exists"
+ usage
+fi
+
+cp $0 $2
+if [ $? -ne 0 ]; then
+ echo "ERROR: Cannot write to destination file"
+ usage
+fi
+
+if [ -n "${ROOT}" ]; then
+ if [ $UID -ne 0 ]; then
+ echo "Only root can use the -r opton"
+ exit 1
+ fi
+ sed -i 's|^#+#||g' $2
+fi
+
+DIR="$( readlink -f $1 )"
+BASE="."
+if [ -z "${NOBASE}" ]; then
+ DIR="$( dirname ${DIR} )"
+ if [ $? -ne 0 ]; then echo "dirname -f ${DIR} ... failed"; usage; fi
+ BASE="$( basename $1 )"
+fi
+
+# tar to standard output adds a load of nulls to the output,
+# which is a bit untidy and results in warnings, so do it this way:
+tar czf $2_ -C ${DIR} ${BASE}
+cat $2_ >> $2
+rm $2_
+
+# DO NOT delete the next line, which MUST be the last line of 'xpack'
+#__ARCHIVE__
diff --git a/build_tools/clarch/larchify b/build_tools/clarch/larchify
new file mode 120000
index 0000000..6e1276a
--- /dev/null
+++ b/build_tools/clarch/larchify
@@ -0,0 +1 @@
+larch/run/larchify \ No newline at end of file
diff --git a/build_tools/clarch/larchroot b/build_tools/clarch/larchroot
new file mode 120000
index 0000000..e757ae4
--- /dev/null
+++ b/build_tools/clarch/larchroot
@@ -0,0 +1 @@
+/home/larchroot \ No newline at end of file
diff --git a/build_tools/clarch/mklarch b/build_tools/clarch/mklarch
new file mode 120000
index 0000000..b8cc051
--- /dev/null
+++ b/build_tools/clarch/mklarch
@@ -0,0 +1 @@
+larch/run/mklarch \ No newline at end of file
diff --git a/build_tools/clarch/remove_links.sh b/build_tools/clarch/remove_links.sh
new file mode 100755
index 0000000..7748d47
--- /dev/null
+++ b/build_tools/clarch/remove_links.sh
@@ -0,0 +1,5 @@
+rm mklarch
+rm cachepacs
+rm larchify
+rm inpacs
+rm usb2bootiso
diff --git a/build_tools/clarch/setup_links.sh b/build_tools/clarch/setup_links.sh
new file mode 100755
index 0000000..24b968c
--- /dev/null
+++ b/build_tools/clarch/setup_links.sh
@@ -0,0 +1,8 @@
+scriptdir=`pwd`
+
+[ -e mklarch ] || ln -s larch/run/mklarch mklarch
+[ -e cachepacs ] || ln -s larch/run/cachepacs cachepacs
+[ -e larchify ] || ln -s larch/run/larchify larchify
+[ -e inpacs ] || ln -s larch/run/inpacs inpacs
+[ -e usb2bootiso ] || ln -s larch/run/usb2bootiso usb2bootiso
+# End
diff --git a/build_tools/clarch/sync_profile.sh b/build_tools/clarch/sync_profile.sh
new file mode 100755
index 0000000..b908f76
--- /dev/null
+++ b/build_tools/clarch/sync_profile.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+SRC_PROFILE=R6-local
+DEST_PROFILE=R6-dev
+
+rsync --exclude=vbg.jpg --exclude=pacman.conf -av larch/profiles/$SRC_PROFILE/ larch/profiles/$DEST_PROFILE/
diff --git a/build_tools/clarch/usb2bootiso b/build_tools/clarch/usb2bootiso
new file mode 120000
index 0000000..ceec442
--- /dev/null
+++ b/build_tools/clarch/usb2bootiso
@@ -0,0 +1 @@
+larch/run/usb2bootiso \ No newline at end of file
diff --git a/build_tools/go.sh b/build_tools/go.sh
new file mode 100755
index 0000000..b776ee1
--- /dev/null
+++ b/build_tools/go.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+clear
+cd clarch || exit 1
+declare -a menuarray
+menuarray=( ` ls larch/profiles/`)
+echo ${array1[@]}
+
+element_count=${#menuarray[*]}
+element_count=`expr $element_count - 1`
+
+
+for i in `seq 0 $element_count`
+do
+ echo "$i ) ${menuarray[$i]}"
+ echo
+done
+echo "Select the profile to use:"
+read a
+profile=${menuarray[$a]}
+pwd
+ls
+echo "Running ./mklarch -f -p larch/profiles/$profile"
+time ./mklarch -f -c /tmp/$profile -p larch/profiles/$profile
+echo "your iso has been moved to /tmp/testcd-2.iso"
+mv /home/larchroot/.larch/mylivecd.iso /tmp/testcd-2.iso
diff --git a/build_tools/makefile b/build_tools/makefile
new file mode 100644
index 0000000..c07f7ac
--- /dev/null
+++ b/build_tools/makefile
@@ -0,0 +1,44 @@
+# makefile for LinHES (aka KnoppMyth) R6 development.
+#
+#########################################################################
+# Configuration: #
+#-----------------------------------------------------------------------#
+# Directory within which are the profiles:
+PRODIR = larch/profiles
+# The list of profiles to support:
+PROFILES = dev local
+# directory within which to build:
+SUBDIR = clarch
+#-----------------------------------------------------------------------#
+# Default iso image name:
+DEFAULT = LinHES.iso
+# The directory of the resulting iso image:
+RESDIR = /tmp
+# full pathname to the iso built release file:
+RELFILE = /home/larchroot/etc/LinHES-release
+# Name of the created CDROM image:
+CDFILE = /home/larchroot/.larch/mylivecd.iso
+#########################################################################
+# Targets: #
+#-----------------------------------------------------------------------#
+# The default target:
+Help help:
+ @echo ""
+ @echo "Usage: 'make <profile>' where <profile> is one of:"
+ @echo " $(PROFILES)"
+ @echo " to make a $(RESULT) file of that profile."
+ @echo ""
+#-----------------------------------------------------------------------#
+CMD = mklarch -f -p $(PRODIR)
+$(PROFILES) :
+ @clear ; cd $(SUBDIR) && \
+ echo -e "\nBeginning \e[1m$(CMD)/R6-$@\e[0m" && \
+ time ./$(CMD)/R6-$@ -c /tmp/R6-$@ 2>&1 && \
+ ISOIMG="$(DEFAULT)" && [ -f "$(RELFILE)" ] && \
+ ISOIMG="$$(cat $(RELFILE) | sed 's/ /_/g').iso" && \
+ IMAGE="$(RESDIR)/$${ISOIMG}" && mv -f $(CDFILE) $${IMAGE} && \
+ echo -e "\nThe iso is now located at \e[1m$${IMAGE}\e[0m\n" && \
+ [ "$(DEFAULT)" != "$${ISOIMG}" ] && { cd $(RESDIR) && \
+ rm -f $(DEFAULT) ; ln -s $${ISOIMG} $(DEFAULT) ; }
+#######################################################################
+# End
diff --git a/mkarchroot b/mkarchroot
new file mode 100755
index 0000000..58065b3
--- /dev/null
+++ b/mkarchroot
@@ -0,0 +1,184 @@
+#!/bin/bash
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+FORCE="n"
+RUN=""
+
+working_dir=""
+
+APPNAME=$(basename "${0}")
+
+# usage: usage <exitvalue>
+usage ()
+{
+ echo "usage ${APPNAME} [options] working-dir [package-list | app]"
+ echo " options:"
+ echo " -r <app> Run 'app' within the context of the chroot"
+ echo " -u Update the chroot via pacman"
+ echo " -f Force overwrite of files in the working-dir"
+ echo " -C <file> location of a pacman config file"
+ echo " -M <file> location of a makepkg config file"
+ echo " -h This message"
+ exit $1
+}
+
+while getopts 'r:ufhC:M:' arg; do
+ case "${arg}" in
+ r) RUN="$OPTARG" ;;
+ u) RUN="pacman -Syu" ;;
+ f) FORCE="y" ;;
+ C) pac_conf="$OPTARG" ;;
+ M) makepkg_conf="$OPTARG" ;;
+ h|?) usage 0 ;;
+ *) echo "invalid argument '${arg}'"; usage 1 ;;
+ esac
+done
+
+if [ "$EUID" != "0" ]; then
+ echo "error: this script must be run as root."
+ exit 1
+fi
+
+shift $(($OPTIND - 1))
+
+if [ "$RUN" = "" -a $# -lt 2 ]; then
+ echo "you must specify a directory and one or more packages"
+ usage 1
+elif [ $# -lt 1 ]; then
+ echo "you must specify a directory"
+ usage 1
+fi
+
+working_dir="$(readlink -f ${1})"
+shift 1
+
+[ "${working_dir}" = "" ] && echo "error: please specify a working directory" && usage 1
+
+# {{{ functions
+
+chroot_mount ()
+{
+ echo "mounting sysfs : /sys"
+ [ -e "${working_dir}/sys" ] || mkdir "${working_dir}/sys"
+ mount -t sysfs sysfs "${working_dir}/sys"
+
+ echo "mounting procfs : /proc"
+ [ -e "${working_dir}/proc" ] || mkdir "${working_dir}/proc"
+ mount -t proc proc "${working_dir}/proc"
+
+ echo "binding device nodes : /dev"
+ [ -e "${working_dir}/dev" ] || mkdir "${working_dir}/dev"
+ mount -o bind /dev "${working_dir}/dev"
+
+ echo "binding pacman cache : /var/cache/pacman"
+ [ -e "${working_dir}/var/cache/pacman" ] || mkdir -p "${working_dir}/var/cache/pacman"
+ mount -o bind /var/cache/pacman "${working_dir}/var/cache/pacman"
+
+ trap 'chroot_umount' 0 1 2 15
+}
+
+copy_hostconf ()
+{
+ echo "copying mtab : /etc/mtab"
+ cp /etc/mtab "${working_dir}/etc/mtab"
+
+ echo "copying resolv.conf : /etc/resolv.conf"
+ cp /etc/resolv.conf "${working_dir}/etc/resolv.conf"
+
+}
+
+chroot_umount ()
+{
+ echo "cleaning up mounts"
+ umount "${working_dir}/proc"
+ umount "${working_dir}/sys"
+ umount "${working_dir}/dev"
+ umount "${working_dir}/var/cache/pacman"
+}
+# }}}
+
+if [ "$RUN" != "" ]; then
+ # run chroot {{{
+ #Sanity check
+ if [ ! -f "${working_dir}/.arch-chroot" ]; then
+ echo "error: '${working_dir}' does not appear to be a Arch chroot"
+ echo " please build the image using mkarchroot"
+ exit 1
+ fi
+
+ chroot_mount
+ copy_hostconf
+
+ echo "starting chroot ($RUN)"
+ chroot "${working_dir}" ${RUN}
+
+ # }}}
+else
+ # {{{ build chroot
+ if [ -e "${working_dir}" -a "${FORCE}" = "n" ]; then
+ echo "error: working dir '${working_dir}' already exists - try using -f"
+ exit 1
+ fi
+
+ mkdir -p "${working_dir}/var/lib/pacman/"
+ mkdir -p "${working_dir}/etc/"
+
+ chroot_mount
+
+ pacargs="--noconfirm -v " #--noprogressbar -v
+ pacargs="$pacargs --root=${working_dir}"
+ # pacman takes these as relative to the given root
+ pacargs="$pacargs --cachedir=/var/cache/pacman/pkg"
+ if [ "$pac_conf" != "" ]; then
+ pacargs="$pacargs --config=${pac_conf}"
+ fi
+
+ if [ $# -eq 0 ]; then
+ echo "no packages to install"
+ else
+ echo "installing packages:"
+ for i in $@; do echo -e "\t$i"; done
+
+ op="-Sy"
+ if [ "$FORCE" = "y" ]; then
+ op="${op}f"
+ fi
+ if ! pacman ${op} ${pacargs} $@; then
+ echo "error: failed to install all packages"
+ exit 1
+ fi
+ fi
+
+ if [ -d "${working_dir}/lib/modules" ]; then
+ echo "running ldconfig"
+ ldconfig -r "${working_dir}"
+ fi
+
+ if [ "$pac_conf" != "" ]; then
+ echo "installing custom pacman.conf"
+ cp ${pac_conf} ${working_dir}/etc/pacman.conf
+ fi
+
+ if [ "$makepkg_conf" != "" ]; then
+ echo "installing custom makepkg.conf"
+ cp ${makepkg_conf} ${working_dir}/etc/makepkg.conf
+ fi
+
+ echo "generating default locales"
+ cp /etc/locale.gen "${working_dir}/etc/locale.gen"
+ chroot "${working_dir}" locale-gen
+
+ if [ ! -e "${working_dir}/.arch-chroot" ]; then
+ date +%s > "${working_dir}/.arch-chroot"
+ fi
+ # }}}
+fi
+
+# vim:ft=sh:ts=4:sw=4:et:
diff --git a/setup_env.sh b/setup_env.sh
new file mode 100755
index 0000000..986b5ca
--- /dev/null
+++ b/setup_env.sh
@@ -0,0 +1,89 @@
+#!/bin/bash
+# Script to setup the LinHES development enviroment
+# ./setup_env.sh ( i586|i686|x86_64 )
+# This script assumes that /tmp is usable.
+MIRROR_DIR=../pkg_repo
+
+
+function arg_check {
+case $1 in
+ i586) ARCH=$1 ;;
+ i686) ARCH=$1 ;;
+ x86_64) ARCH=$1 ;;
+ *)
+ echo "invalid arch specified"
+ echo "valid options include i586, i686 and x86_64"
+ echo "EX: ./setup_env.sh i686 "
+ exit 1
+ ;;
+ esac
+}
+
+function pacman_check {
+ which pacman
+ status=$?
+ if [ ! $status = 0 ]
+ then
+ echo "Can not find pacman in the path, please install pacman"
+ exit 1
+ fi
+}
+
+
+
+#-----------------------------------------------
+arg_check $1
+pacman_check
+
+
+cd build_tools/clarch
+./setup_links.sh
+cd -
+#create the local pkg dir's for mirror and creating pkg's
+[ -e $MIRROR_DIR ] || mkdir -p $MIRROR_DIR
+for i in i586 i686 x86_64
+do
+ [ -e $MIRROR_DIR/$i ] || mkdir -p $MIRROR_DIR/$i
+ for y in core extra core-testing extra-testing chroot-devel
+ do
+ [ -e $MIRROR_DIR/$i/$y ] || mkdir -p $MIRROR_DIR/$i/$y
+ done
+done
+[ -e $MIRROR_DIR/sources ] || mkdir -p $MIRROR_DIR/sources
+[ -e $MIRROR_DIR/packages ] || mkdir -p $MIRROR_DIR/packages
+
+#correct pacman.conf to use the correct ARCH to build the chroot
+sed -e "s/REPLACEME/$ARCH/g" templates/pacman.conf.chroot > /tmp/pacman.conf.chroot
+
+#create the chroot
+./mkarchroot -f -C /tmp/pacman.conf.chroot ../build_root.$ARCH base base-devel cdrkit unison openssh
+status=$?
+if [ ! $status = 0 ]
+then
+ echo
+ echo "********************************************************"
+ echo "*** An error occured creating the chroot ***"
+ echo "********************************************************"
+ exit 1
+fi
+#clear out the default resolve.con
+mv -f ../build_root.$ARCH/etc/resolv.conf ../build_root.$ARCH/etc/resolv.conf.orig
+
+#create custom enter_dev_chroot.sh script
+sed -e "s/REPLACEME/$ARCH/g" templates/enter_dev_chroot.sh > ../enter_dev_chroot.$ARCH.sh
+chmod 755 ../enter_dev_chroot.$ARCH.sh
+echo "********************************************************"
+echo "** To enter the chroot (build_root.$ARCH) run: **"
+echo "** cd .. **"
+echo "** ./enter_dev_chroot.$ARCH.sh **"
+echo "********************************************************"
+
+#copy makepkg.conf into the chroot
+sed -e "s/i686/$ARCH/g" templates/makepkg.conf > ../build_root.$ARCH/etc/makepkg.conf
+#copy pacman.conf into the chroot
+sed -e "s/REPLACEME/$ARCH/g" templates/pacman.conf.chroot > ../build_root.$ARCH/etc/pacman.conf
+
+cd ..
+
+
+
diff --git a/templates/developers/jams/.gtkrc-2.0 b/templates/developers/jams/.gtkrc-2.0
new file mode 100644
index 0000000..f5915f3
--- /dev/null
+++ b/templates/developers/jams/.gtkrc-2.0
@@ -0,0 +1 @@
+gtk-icon-theme-name = "Tango"
diff --git a/templates/developers/jams/display.sh b/templates/developers/jams/display.sh
new file mode 100755
index 0000000..c0c3bbc
--- /dev/null
+++ b/templates/developers/jams/display.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+DISPLAY=aopen:0
+export DISPLAY
diff --git a/templates/developers/jams/loginrun.sh b/templates/developers/jams/loginrun.sh
new file mode 100755
index 0000000..5f936b0
--- /dev/null
+++ b/templates/developers/jams/loginrun.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+thunar &
+terminal
+
diff --git a/templates/developers/rdt/loginrun.sh b/templates/developers/rdt/loginrun.sh
new file mode 100755
index 0000000..9811e3a
--- /dev/null
+++ b/templates/developers/rdt/loginrun.sh
@@ -0,0 +1,39 @@
+#!/bin/sh
+# this is a script that gets run from the ~/.bash_profile
+# Note: this is being run from the $BROOT directory,
+# which, by default is /build_tools
+
+# First : only do this once, so check if it has been done:
+if [ ! -f ~/.run ]; then
+# Set the title bar:
+cat >> ~/.bashrc << EOF
+# Set the title bar:
+echo -e "\e]0; CHROOT : LinHES-dev/build_root \007"
+# End
+EOF
+#
+# Set up a new ~/.bash_profile:
+mv ~/.bash_profile ~/.bash_profile.orig
+cat > ~/.bash_profile << EOF
+#!/bin/bash
+# ~/.bash_profile
+. ~/.bashrc
+cdb
+[ -f ~/loginrun.sh ] && ~/loginrun.sh
+# prompt:
+PS1='[\u@\h] \e[34m\W \e[31m\\$\e[0m '
+# End
+EOF
+#
+cat >> /etc/bashrc << EOF
+# added by rdt
+alias ls='ls --color=auto'
+alias lt='ls -lrt'
+# End
+EOF
+#
+# end of "do only once" code
+date > ~/.run && chmod 0 ~/.run
+fi # End of first time test.
+
+# End
diff --git a/templates/enter_dev_chroot.sh b/templates/enter_dev_chroot.sh
new file mode 100644
index 0000000..8f5eb40
--- /dev/null
+++ b/templates/enter_dev_chroot.sh
@@ -0,0 +1,178 @@
+#!/bin/bash
+MYDIR=`pwd`
+BROOT=$MYDIR/build_root.REPLACEME
+MIRROR_DIR=$MYDIR/pkg_repo
+TOOLS_DIR='LinHES-dev'
+ARCH=REPLACEME
+
+
+
+# Make sure only root can run our script
+if [[ $EUID -ne 0 ]]; then
+ echo "This script must be run as root" 1>&2
+ exit 1
+fi
+
+
+
+if [ ! -d $BROOT ]
+then
+ echo "build_root directory not found"
+ exit 1
+fi
+
+
+
+if [ -d LinHES-PKGBUILD ]
+ then
+ echo "Found LinHES-PKGBUILD"
+ else
+ echo "***********************************************************************************************"
+ echo "* Couldn't find LinHES-PKGBUILD *"
+ echo "* Please checkout the repository into the current directory *"
+ echo "* The LinHES-PKGBUILD git repoistory is at knoppmyth.net/mount/repository/LinHES-PKGBUILD.git *"
+ echo "***********************************************************************************************"
+ exit 1
+ fi
+
+mounted=`mount`
+umountlist=" "
+
+
+
+echo $mounted | grep -q $BROOT/proc
+status=$?
+if [ ! status = 0 ]
+then
+ mount -t proc proc $BROOT/proc
+ umountlist="$umountlist proc"
+else
+ echo "proc alredy mounted"
+fi
+
+
+
+
+echo $mounted | grep -q $BROOT/sys
+status=$?
+if [ ! $status = 0 ]
+then
+ mount -t sysfs sysfs $BROOT/sys
+ umountlist="$umountlist sys"
+else
+ echo "sys alredy mounted"
+fi
+
+[ -e $BROOT/dev/random ] || mknod $BROOT/dev/random c 1 8
+[ -e $BROOT/dev/urandom ] || mknod $BROOT/dev/urandom c 1 9
+[ -e $BROOT/dev/tty ] || mknod $BROOT/dev/tty c 5 0
+
+
+
+
+echo $mounted | grep -q $BROOT/dev/pts
+status=$?
+if [ ! $status = 0 ]
+then
+ [ -e $BROOT/dev/pts ] || mkdir -p $BROOT/dev/pts
+ mount -t devpts devpts $BROOT/dev/pts
+ umountlist="$umountlist dev/pts"
+else
+ echo "/dev/pts alredy mounted"
+fi
+
+
+
+#create dir for build_tools
+if [ ! -e $BROOT/build_tools ]
+then
+ mkdir $BROOT/build_tools
+fi
+#mount build_tools
+echo $mounted | grep -q $BROOT/build_tools
+status=$?
+if [ ! $status = 0 ]
+then
+ mount --bind $MYDIR/$TOOLS_DIR/build_tools $BROOT/build_tools
+ umountlist="$umountlist build_tools"
+else
+ echo "/build_tools alredy mounted"
+fi
+
+
+#create dir for the PKGBUILDS
+if [ ! -e $BROOT/data/LinHES-PKGBUILD ]
+then
+ mkdir -p $BROOT/data/LinHES-PKGBUILD
+fi
+
+#mount pkg_repo
+echo $mounted | grep -q $BROOT/data/LinHES-PKGBUILD
+status=$?
+if [ ! $status = 0 ]
+then
+ mount --bind $MYDIR/LinHES-PKGBUILD $BROOT/data/LinHES-PKGBUILD
+ umountlist="$umountlist data/LinHES-PKGBUILD"
+else
+ echo "pkg_repo alredy mounted"
+fi
+
+
+
+#create dir for pkg_repo / local mirror
+if [ ! -e $BROOT/data/pkg_repo ]
+then
+ mkdir -p $BROOT/data/pkg_repo
+fi
+
+#mount pkg_repo
+echo $mounted | grep -q $BROOT/data/pkg_repo
+status=$?
+if [ ! $status = 0 ]
+then
+ mount --bind $MYDIR/pkg_repo $BROOT/data/pkg_repo
+ umountlist="$umountlist data/pkg_repo"
+else
+ echo "pkg_repo alredy mounted"
+fi
+
+
+
+
+
+
+
+
+#copy in some files
+[ -e $BROOT/etc/resolv.conf ] || cp -f /etc/resolv.conf $BROOT/etc/resolv.conf
+
+if [ ! -f $BROOT/etc/bashrc ]
+then
+ cp -f $MYDIR/$TOOLS_DIR/templates/etc/bashrc $BROOT/etc/
+ cp -f $MYDIR/$TOOLS_DIR/templates/etc/kmdev.sh $BROOT/etc/profile.d/kmdev.sh
+ cp -f $MYDIR/$TOOLS_DIR/templates/etc/.bashrc $BROOT/root/
+ cp -f $MYDIR/$TOOLS_DIR/templates/etc/.bash_profile $BROOT/root/
+ chmod 755 $BROOT/root/.bashrc
+ chmod 755 $BROOT/root/.bash_profile
+ chmod 755 $BROOT/etc/profile.d/kmdev.sh
+fi
+
+
+#change the "xterm" title so we know it's a chroot
+echo -e "\e]0;chroot-pkgbuild\a"
+#used for Konsole
+echo -e "\e]30;chroot-pkgbuild\a"
+env -i /usr/sbin/chroot $BROOT /bin/bash --login
+
+
+
+for i in $umountlist
+do
+ #echo "unmounting $BROOT/$i"
+ umount $BROOT/$i
+done
+
+
+echo -e "\e]30;normal\a"
+echo -e "\e]0;normal\a"
+
diff --git a/templates/etc/.bash_profile b/templates/etc/.bash_profile
new file mode 100755
index 0000000..2fe91f2
--- /dev/null
+++ b/templates/etc/.bash_profile
@@ -0,0 +1,6 @@
+. ~/.bashrc
+cdb
+if [ -f ~/loginrun.sh ]
+then
+ ~/loginrun.sh
+fi
diff --git a/templates/etc/.bashrc b/templates/etc/.bashrc
new file mode 100755
index 0000000..9abf8d0
--- /dev/null
+++ b/templates/etc/.bashrc
@@ -0,0 +1,3 @@
+#!/bin/bash
+. /etc/profile
+. /etc/bashrc
diff --git a/templates/etc/bashrc b/templates/etc/bashrc
new file mode 100644
index 0000000..8ade7d0
--- /dev/null
+++ b/templates/etc/bashrc
@@ -0,0 +1,4 @@
+alias cdl='cd /data/LinHES-PKGBUILD/abs'
+alias cdp='cd /build_tools/clarch/larch/profiles'
+alias cdmc='cd /data/LinHES-PKGBUILD/abs/local/mythtv/mythtv/src/mythtv-0.21/programs/mythinstall'
+alias cdb='cd $BHOME'
diff --git a/templates/etc/kmdev.sh b/templates/etc/kmdev.sh
new file mode 100644
index 0000000..7604d9d
--- /dev/null
+++ b/templates/etc/kmdev.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+export BHOME=/build_tools
+export HOME=/root
+export PATH=$PATH:$BHOME/bin:$BHOME/bld/bin
+export PS1='[\u@LinHES_build \W]\$'
diff --git a/templates/makepkg.conf b/templates/makepkg.conf
new file mode 100644
index 0000000..84e9a76
--- /dev/null
+++ b/templates/makepkg.conf
@@ -0,0 +1,106 @@
+#
+# /etc/makepkg.conf
+#
+
+#########################################################################
+# SOURCE ACQUISITION
+#########################################################################
+#
+#-- The download utilities that makepkg should use to acquire sources
+# Format: 'protocol::agent'
+DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3 -O %o %u'
+ 'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
+ 'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
+ 'rsync::/usr/bin/rsync -z %u %o'
+ 'scp::/usr/bin/scp -C %u %o')
+
+# Other common tools:
+# /usr/bin/snarf
+# /usr/bin/lftpget -c
+# /usr/bin/curl
+
+#########################################################################
+# ARCHITECTURE, COMPILE FLAGS
+#########################################################################
+#
+CARCH="i686"
+CHOST="i686-pc-linux-gnu"
+
+#-- Exclusive: will only run on -march=i686
+# -march (or -mcpu) builds exclusively for an architecture
+# -mtune optimizes for an architecture, but builds for whole processor family
+CFLAGS="-march=i686 -mtune=generic -O2 -pipe"
+CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe"
+#-- Make Flags: change this for DistCC/SMP systems
+#MAKEFLAGS="-j2"
+
+#########################################################################
+# BUILD ENVIRONMENT
+#########################################################################
+#
+# Defaults: BUILDENV=(fakeroot !distcc color !ccache !xdelta)
+# A negated environment option will do the opposite of the comments below.
+#
+#-- fakeroot: Allow building packages as a non-root user
+#-- distcc: Use the Distributed C/C++/ObjC compiler
+#-- color: Colorize output messages
+#-- ccache: Use ccache to cache compilation
+#-- xdelta: Generate delta patch from previous to current package
+#
+BUILDENV=(fakeroot !distcc !color !ccache !xdelta)
+#
+#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
+#-- specify a space-delimited list of hosts running in the DistCC cluster.
+#DISTCC_HOSTS=""
+
+#########################################################################
+# GLOBAL PACKAGE OPTIONS
+# These are default values for the options=() settings
+#########################################################################
+#
+# Default: OPTIONS=(strip docs libtool emptydirs zipman)
+# A negated option will do the opposite of the comments below.
+#
+#-- strip: Strip symbols from binaries/libraries
+#-- docs: Save doc and info directories
+#-- libtool: Leave libtool (.la) files in packages
+#-- emptydirs: Leave empty directories in packages
+#-- zipman: Compress manpages with gzip
+#
+OPTIONS=(strip docs libtool emptydirs zipman)
+
+#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
+INTEGRITY_CHECK=(md5)
+#-- Info and doc directories to remove (if option set correctly above)
+DOC_DIRS=(usr/{,share/}{info,doc,gtk-doc} opt/*/{info,doc,gtk-doc})
+#-- Directories to be searched for the strip option (if option set correctly above)
+STRIP_DIRS=(bin lib sbin usr/{bin,lib,sbin,local/{bin,lib,sbin}} opt/*/{bin,lib,sbin})
+
+#########################################################################
+# PACKAGE OUTPUT
+#########################################################################
+#
+# Default: put built package and cached source in build directory
+#
+#-- Destination: specify a fixed directory where all packages will be placed
+PKGDEST=/data/pkg_repo/packages
+#-- Source cache: specify a fixed directory where source files will be cached
+SRCDEST=/data/pkg_repo/sources
+
+#-- Packager: name/email of the person or organization building packages
+PACKAGER="LinHESDev@knoppmyth.net"
+
+#########################################################################
+# BUILDSCRIPT/EXTENSION DEFAULTS
+#########################################################################
+#
+# WARNING: Do NOT modify these variables unless you know what you are
+# doing.
+#
+BUILDSCRIPT='PKGBUILD'
+PKGEXT='.pkg.tar.gz'
+SRCEXT='.src.tar.gz'
+DB_COMPRESSION='gz'
+DB_CHECKSUMS=(md5)
+
+# vim: set ft=sh ts=2 sw=2 et:
diff --git a/templates/pacman.conf.chroot b/templates/pacman.conf.chroot
new file mode 100644
index 0000000..7059fbc
--- /dev/null
+++ b/templates/pacman.conf.chroot
@@ -0,0 +1,74 @@
+#
+# /etc/pacman.conf
+# from pacman.conf MV
+# NOTE: If you find a mirror that is geographically close to you, please
+# move it to the top of the server list, so pacman will choose it
+# first.
+#
+# To re-sort your mirror lists by ping/traceroute results, use the
+# /usr/bin/sortmirrors script. It requires the "netselect" package.
+#
+
+# See the pacman manpage for option directives
+
+#
+# GENERAL OPTIONS
+#
+[options]
+LogFile = /var/log/pacman.log
+NoUpgrade = etc/passwd etc/group etc/shadow etc/sudoers
+NoUpgrade = etc/fstab etc/raidtab etc/ld.so.conf
+NoUpgrade = etc/rc.conf etc/rc.local
+NoUpgrade = etc/modprobe.conf etc/modules.conf
+NoUpgrade = etc/lilo.conf boot/grub/menu.lst
+NoUpgrade = data/srv/hobbit/etc/bb-hosts
+NoUpgrade = etc/func/minion.conf
+
+HoldPkg = pacman glibc
+CacheDir = /tmp/dev-pkgcache
+#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
+
+#
+# REPOSITORIES
+# - can be defined here or included from another file
+# - pacman will search repositories in the order defined here.
+# - local/custom mirrors can be added here or in separate files
+#
+[core]
+Server = http://knoppmyth.net/repo/REPLACEME/$repo
+
+[extra]
+Server = http://knoppmyth.net/repo/REPLACEME/$repo
+
+[chroot-devel]
+Server = http://knoppmyth.net/repo/REPLACEME/$repo
+
+#[core-testing]
+Server = http://knoppmyth.net/repo/REPLACEME/$repo
+
+#[extra-testing]
+Server = http://knoppmyth.net/repo/REPLACEME/$repo
+
+
+
+
+
+
+########################ARCH DEFAULTS#############
+#[ARCH-core]
+# Add your preferred servers here, they will be used first
+#Server = ftp://ftp.ibiblio.org/pub/linux/distributions/archlinux/$repo/os/i686
+
+#[ARCH-extra]
+# Add your preferred servers here, they will be used first
+#Server = ftp://ftp.ibiblio.org/pub/linux/distributions/archlinux/$repo/os/i686
+
+#[community]
+# Add your preferred servers here, they will be used first
+#Include = /etc/pacman.d/mirrorlist
+
+# Unstable is disabled by default. To enable, uncomment the following
+# two lines. You can add preferred servers immediately after the header,
+# and they will be used before the default mirrors.
+#[unstable]
+#Include = /etc/pacman.d/mirrorlist