summaryrefslogtreecommitdiffstats
path: root/build_tools/clarch/larch/profiles/MV-local/post_process
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2008-11-11 23:18:42 (GMT)
committerJames Meyer <james.meyer@operamail.com>2008-11-11 23:18:42 (GMT)
commit52b76328ff61765861da32a3c4c14b9a89dfb1ba (patch)
tree68f126550b32aba0cd379ab6cecac20037633c6d /build_tools/clarch/larch/profiles/MV-local/post_process
parent4e51947ec7bdf7da4762de246a6117cd29b2777b (diff)
downloadlinhes_dev-52b76328ff61765861da32a3c4c14b9a89dfb1ba.zip
MythVantage profile
Diffstat (limited to 'build_tools/clarch/larch/profiles/MV-local/post_process')
-rwxr-xr-xbuild_tools/clarch/larch/profiles/MV-local/post_process/fstab14
-rw-r--r--build_tools/clarch/larch/profiles/MV-local/post_process/functions.patch13
-rw-r--r--build_tools/clarch/larch/profiles/MV-local/post_process/hosts.allow7
-rwxr-xr-xbuild_tools/clarch/larch/profiles/MV-local/post_process/hosts.deny6
-rwxr-xr-xbuild_tools/clarch/larch/profiles/MV-local/post_process/menu.lst55
-rwxr-xr-xbuild_tools/clarch/larch/profiles/MV-local/post_process/pacman.conf64
-rwxr-xr-xbuild_tools/clarch/larch/profiles/MV-local/post_process/rc.conf113
-rwxr-xr-xbuild_tools/clarch/larch/profiles/MV-local/post_process/rc.local21
-rwxr-xr-xbuild_tools/clarch/larch/profiles/MV-local/post_process/rc.shutdown104
-rw-r--r--build_tools/clarch/larch/profiles/MV-local/post_process/rc.sysinit.patch14
-rw-r--r--build_tools/clarch/larch/profiles/MV-local/post_process/root13
-rwxr-xr-xbuild_tools/clarch/larch/profiles/MV-local/post_process/securetty19
-rwxr-xr-xbuild_tools/clarch/larch/profiles/MV-local/post_process/tweak.sh67
13 files changed, 510 insertions, 0 deletions
diff --git a/build_tools/clarch/larch/profiles/MV-local/post_process/fstab b/build_tools/clarch/larch/profiles/MV-local/post_process/fstab
new file mode 100755
index 0000000..8ea8305
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/MV-local/post_process/fstab
@@ -0,0 +1,14 @@
+#
+# /etc/fstab: static file system information
+#
+# <file system> <dir> <type> <options> <dump> <pass>
+none /dev/pts devpts defaults 0 0
+none /dev/shm tmpfs defaults 0 0
+
+/dev/cdrom /mnt/cd iso9660 ro,user,noauto,unhide 0 0
+/dev/dvd /mnt/dvd udf ro,user,noauto,unhide 0 0
+/dev/fd0 /mnt/fl vfat user,noauto 0 0
+
+/dev/hda1 / reiserfs defaults 0 1
+/dev/hda2 swap swap defaults 0 0
+/dev/hda3 /data reiserfs defaults 0 0
diff --git a/build_tools/clarch/larch/profiles/MV-local/post_process/functions.patch b/build_tools/clarch/larch/profiles/MV-local/post_process/functions.patch
new file mode 100644
index 0000000..eb9034c
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/MV-local/post_process/functions.patch
@@ -0,0 +1,13 @@
+--- functions.orig 2008-07-06 10:16:37.000000000 -0500
++++ functions 2008-07-06 19:42:07.000000000 -0500
+@@ -61,8 +61,8 @@
+
+ # prefixes:
+
+-PREFIX_REG="::"
+-PREFIX_HL=" >"
++PREFIX_REG=" :"
++PREFIX_HL=" :"
+
+ # functions:
+
diff --git a/build_tools/clarch/larch/profiles/MV-local/post_process/hosts.allow b/build_tools/clarch/larch/profiles/MV-local/post_process/hosts.allow
new file mode 100644
index 0000000..ca19dbb
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/MV-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/MV-local/post_process/hosts.deny b/build_tools/clarch/larch/profiles/MV-local/post_process/hosts.deny
new file mode 100755
index 0000000..ca30ab4
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/MV-local/post_process/hosts.deny
@@ -0,0 +1,6 @@
+#
+# /etc/hosts.deny
+#
+ALL
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/MV-local/post_process/menu.lst b/build_tools/clarch/larch/profiles/MV-local/post_process/menu.lst
new file mode 100755
index 0000000..1bd45a6
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/MV-local/post_process/menu.lst
@@ -0,0 +1,55 @@
+# 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 MythVantage
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit console=tty1
+initrd /boot/kernel26.img
+
+# (1) bootsplash
+title STB-bootsplash
+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
+
+
diff --git a/build_tools/clarch/larch/profiles/MV-local/post_process/pacman.conf b/build_tools/clarch/larch/profiles/MV-local/post_process/pacman.conf
new file mode 100755
index 0000000..e4495ed
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/MV-local/post_process/pacman.conf
@@ -0,0 +1,64 @@
+#
+# /etc/pacman.conf
+#
+# 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
+#
+[mv-core-testing]
+Server = http://mvbuild/repo/mv-core-testing/
+
+[mv-extra-testing]
+Server = http://mvbuild/repo/mv-extra-testing/
+
+[svc_pkg]
+Include = /etc/pacman.d/svc_pkg
+
+
+########################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/MV-local/post_process/rc.conf b/build_tools/clarch/larch/profiles/MV-local/post_process/rc.conf
new file mode 100755
index 0000000..790269c
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/MV-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="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 = x ]
+ 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/MV-local/post_process/rc.local b/build_tools/clarch/larch/profiles/MV-local/post_process/rc.local
new file mode 100755
index 0000000..0552860
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/MV-local/post_process/rc.local
@@ -0,0 +1,21 @@
+#!/bin/bash
+. /etc/profile
+. ${MV_ROOT}/bin/install_functions.sh
+#install initial database
+pacman -S --noconfirm /data/var/cache/pacman/pkg/mythdb-initial* 2>/dev/null
+
+init_network
+/etc/rc.d/alsa-utils start 0
+init_remote
+random_theme
+
+echo $CMDLINE | grep -q NoX
+if [ $? = 0 ]
+then
+ echo "No auto X option found"
+ /usr/bin/chvt 2
+else
+ /root/startx &
+fi
+
+
diff --git a/build_tools/clarch/larch/profiles/MV-local/post_process/rc.shutdown b/build_tools/clarch/larch/profiles/MV-local/post_process/rc.shutdown
new file mode 100755
index 0000000..1a8cdbe
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/MV-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/MV-local/post_process/rc.sysinit.patch b/build_tools/clarch/larch/profiles/MV-local/post_process/rc.sysinit.patch
new file mode 100644
index 0000000..69a1ce0
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/MV-local/post_process/rc.sysinit.patch
@@ -0,0 +1,14 @@
+--- rc.sysinit.orig 2008-07-06 19:39:36.000000000 -0500
++++ rc.sysinit 2008-07-06 19:40:28.000000000 -0500
+@@ -9,10 +9,7 @@
+ source_functions
+
+ echo " "
+-printhl "Arch Linux $C_OTHER(${C_H2}Core Dump$C_OTHER)\n"
+-printhl "${C_H2}http://www.archlinux.org"
+-printhl "Copyright 2002-2007 Judd Vinet"
+-printhl "Copyright 2007-2008 Aaron Griffin"
++printhl "MythVantage \n"
+ printhl "Distributed under the GNU General Public License (GPL)"
+ printsep
+
diff --git a/build_tools/clarch/larch/profiles/MV-local/post_process/root b/build_tools/clarch/larch/profiles/MV-local/post_process/root
new file mode 100644
index 0000000..e6542a2
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/MV-local/post_process/root
@@ -0,0 +1,13 @@
+#
+# DO NOT EDIT THIS FILE MANUALLY!! USE crontab -e INSTEAD.
+#
+
+# <minute> <hour> <day> <month> <dow> <command>
+
+
+01 * * * * /usr/sbin/run-cron /etc/cron.hourly
+*/10 * * * * /usr/sbin/run-cron /etc/cron.tenminutes
+02 00 * * * /usr/sbin/run-cron /etc/cron.daily
+22 00 * * 0 /usr/sbin/run-cron /etc/cron.weekly
+42 00 1 * * /usr/sbin/run-cron /etc/cron.monthly
+
diff --git a/build_tools/clarch/larch/profiles/MV-local/post_process/securetty b/build_tools/clarch/larch/profiles/MV-local/post_process/securetty
new file mode 100755
index 0000000..68e8a50
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/MV-local/post_process/securetty
@@ -0,0 +1,19 @@
+#
+# /etc/securetty
+#
+
+console
+vc/1
+vc/2
+vc/3
+vc/4
+vc/5
+vc/6
+tty1
+tty2
+tty3
+tty4
+tty5
+tty6
+
+# End of file
diff --git a/build_tools/clarch/larch/profiles/MV-local/post_process/tweak.sh b/build_tools/clarch/larch/profiles/MV-local/post_process/tweak.sh
new file mode 100755
index 0000000..9fa0396
--- /dev/null
+++ b/build_tools/clarch/larch/profiles/MV-local/post_process/tweak.sh
@@ -0,0 +1,67 @@
+#!/bin/bash
+
+cd /
+#tar -zxvf .tweak/linux-kernel-2.6.16-i486-1.tgz
+#chmod 755 install/doinst.sh
+#install/doinst.sh
+cd .tweak
+#cd /boot
+#ln -s vmlinuz26STB vmlinuz
+#cd -
+#cp fstab /etc/fstab.install
+#cp pacman.conf /etc
+cp menu.lst /boot/grub/menu.lst
+
+cp -f hosts.allow /etc/hosts.allow
+cp -f securetty /etc/securetty
+cp -f rc.conf /etc/rc.conf
+#cp -f rc.local /etc/rc.local
+#cp -f locale.gen /etc/locale.gen
+
+cp -f rc.shutdown /etc/rc.shutdown
+#cp -f inittab /etc/inittab
+
+#cp -f fbsplash-darch-1024x768 /boot/fbsplash-darch-1024x768
+
+
+
+#cp -rf .tilda /data/home/mythtv/.tilda
+ln -s /etc/keylaunchrc /root/.keylaunchrc
+mkdir -p /etc/cron.tenminutes
+cp -f root /var/spool/cron/root
+chmod 0440 /etc/sudoers
+#echo "mvi" > /etc/hostname
+#echo /usr/local/lib >> /etc/ld.so.conf
+#/sbin/ldconfig
+#/usr/sbin/locale-gen
+
+chmod 777 /tmp
+mkdir -p /data/home/mythtv/.mythtv
+ln -s /etc/lircrc /data/home/mythtv/.mythtv/lircrc
+ln -s /etc/lircrc /data/home/mythtv/.lircrc
+cp -f /etc/skel/.bashrc /data/home/mythtv/
+cp -f /etc/skel/.bash_profile /data/home/mythtv/
+cp -f /etc/skel/.bashrc /root/
+cp -f /etc/skel/.bash_profile /root/
+mkdir -p /data/home/mythtv/templates
+chown -R mythtv /data/media
+chown -R mythtv /data/home/mythtv
+ln -s /usr/sbin/chroot /usr/bin/chroot
+ln -s /bin/lsmod /sbin/lsmod
+/sbin/add_service.sh netfs
+/sbin/add_service.sh oss
+/sbin/add_service.sh syslog-ng
+/sbin/remove_service.sh alsa-utils
+/usr/bin/chage -d 01-01-2000 nobody
+/usr/bin/chage -E 01-01-3000 nobody
+cp /etc/pam.d/chage /etc/pam.d/chsh
+chsh -s /bin/bash nobody
+
+
+cd /etc/rc.d
+echo "patching functions"
+patch -p0 </.tweak/functions.patch
+cd /etc
+echo "patching rc.sysinit"
+patch -p0 </.tweak/rc.sysinit.patch
+ln -s /bin/bash /bin/ash