summaryrefslogtreecommitdiffstats
path: root/build_tools/clarch/larch/profiles/MV-local/post_process/tweak.sh
blob: 9fa0396be574fb3934b079d4191baa294f730bd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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