Housekeeping: get rid of extraneous/deprecated postscripts
authorGraydon, Tracy <tracy.graydon@intel.com>
Wed, 8 May 2013 01:52:22 +0000 (18:52 -0700)
committerGraydon, Tracy <tracy.graydon@intel.com>
Wed, 8 May 2013 01:52:22 +0000 (18:52 -0700)
custom/scripts/cleanup.post [deleted file]
custom/scripts/ivi-root.post [deleted file]
custom/scripts/ivi-x11.post [deleted file]
custom/scripts/prelink.post [deleted file]
custom/scripts/rpm.post [deleted file]
custom/scripts/slp-common.post [deleted file]
custom/scripts/slp-common.post.bak [deleted file]
custom/scripts/systemd.post [deleted file]
custom/scripts/users.post [deleted file]

diff --git a/custom/scripts/cleanup.post b/custom/scripts/cleanup.post
deleted file mode 100644 (file)
index d7c0ecd..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-# save a little bit of space at least...
-rm -f /boot/initrd*
diff --git a/custom/scripts/ivi-root.post b/custom/scripts/ivi-root.post
deleted file mode 100644 (file)
index e1c96a6..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-if [[ (-h /root) ]]; then
-       rm /root
-       mkdir /root
-fi
diff --git a/custom/scripts/ivi-x11.post b/custom/scripts/ivi-x11.post
deleted file mode 100644 (file)
index 63d1d3d..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-if [[ (! -d /opt/etc/X11/xorg.conf.d) && (! -d /etc/X11/xorg.conf.d) ]]; then 
-       mkdir -p /opt/etc/X11/xorg.conf.d; 
-       ln -s /opt/etc/X11/xorg.conf.d /etc/X11; 
-fi
diff --git a/custom/scripts/prelink.post b/custom/scripts/prelink.post
deleted file mode 100644 (file)
index 527548c..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-# Prelink can reduce boot time
-if [ -x /usr/sbin/prelink ]; then
-    /usr/sbin/prelink -aRqm
-fi
diff --git a/custom/scripts/rpm.post b/custom/scripts/rpm.post
deleted file mode 100644 (file)
index 62707bd..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-rm -f /var/lib/rpm/__db*
-rpm --rebuilddb
diff --git a/custom/scripts/slp-common.post b/custom/scripts/slp-common.post
deleted file mode 100644 (file)
index c4fa855..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-echo 'kickstart post script start'
-if [ -d /etc/init.d ]; then
-    cp /etc/init.d/* /etc/rc.d/init.d/ -rdf
-fi
-rm -rf /etc/init.d*
-ln -sf /etc/rc.d/init.d /etc/init.d
-
-rm -rf /etc/localtime  
-ln -sf /opt/etc/localtime /etc/localtime  
-
-# Without this line the rpm don't get the architecture right.
-# echo -n 'armv7l-tizen-linux' > /etc/rpm/platform
-> /etc/rpm/platform
-
-ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key -N ""
-ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ""
-ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ""
-
-pkg_initdb
-
-
-ln -s /opt/etc/X11/xkb /usr/share/X11
-
-echo "UDEV_PERSISTENT_STORAGE=no" >> /etc/sysconfig/udev
-
-rm -rf /usr/share/man
-rm -rf /usr/share/doc
-
-ldconfig
-
-mkdir -p /opt/var/lib/dbus
-
-rm -f /var/lib/rpm/__db*
-mv -f /var/lib/rpm /opt/var/lib/ 
-ln -sf /opt/var/lib/rpm /var/lib/rpm
-rpmdb --rebuilddb
-
-if [ -e /usr/bin/build-backup-data.sh ]; then
-           /usr/bin/build-backup-data.sh
-fi
diff --git a/custom/scripts/slp-common.post.bak b/custom/scripts/slp-common.post.bak
deleted file mode 100644 (file)
index 79b485d..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-echo 'kickstart post script start'
-if [ -d /etc/init.d ]; then
-    cp /etc/init.d/* /etc/rc.d/init.d/ -rdf
-fi
-rm -rf /etc/init.d*
-ln -sf /etc/rc.d/init.d /etc/init.d
-
-rm -rf /etc/localtime  
-ln -sf /opt/etc/localtime /etc/localtime  
-#rm -rf /usr/share/zoneinfo  
-#ln -sf /opt/share/zoneinfo /usr/share/zoneinfo 
-
-# Without this line the rpm don't get the architecture right.
-# echo -n 'armv7l-tizen-linux' > /etc/rpm/platform
-> /etc/rpm/platform
-
-ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key -N ""
-ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ""
-ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ""
-
-pkg_initdb
-
-INITDB=1 ail_initdb
-/opt/apps/com.samsung.menu-screen/bin/menuscreen_initdb
-
-# ims-service domain setting
-RESULT=`grep "192.168.0.163 config.45001.rcse" /etc/hosts`  
-if [ -z "$RESULT" ]; then  
-    echo "Set domain for auto configuration"  
-    echo "192.168.0.163 config.45001.rcse" >> /etc/hosts  
-else  
-    echo "Already setted domain for test auto configuration"  
-fi  
-# ims-service domain setting
-
-cat > /usr/bin/press << EOF
-#!/bin/sh
-
-JUNK="SLP"
-
-[ "\$1" ] && TIMEOUT="\$1" || TIMEOUT="1"
-
-echo "Press return key to stop scripts"
-read -t \$TIMEOUT JUNK
-exit \$?
-EOF
-chmod +x /usr/bin/press
-
-ln -s /opt/etc/X11/xkb /usr/share/X11
-
-echo "UDEV_PERSISTENT_STORAGE=no" >> /etc/sysconfig/udev
-
-rm -rf /usr/share/man
-rm -rf /usr/share/doc
-
-ldconfig
-
-mkdir -p /opt/var/lib/dbus
-
-rm -f /var/lib/rpm/__db*
-mv -f /var/lib/rpm /opt/var/lib/ 
-ln -sf /opt/var/lib/rpm /var/lib/rpm
-rpmdb --rebuilddb
-
-if [ -e /usr/bin/build-backup-data.sh ]; then
-           /usr/bin/build-backup-data.sh
-fi
diff --git a/custom/scripts/systemd.post b/custom/scripts/systemd.post
deleted file mode 100644 (file)
index febbef8..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-
-cp -a /lib/systemd/system/* /usr/lib/systemd/system
diff --git a/custom/scripts/users.post b/custom/scripts/users.post
deleted file mode 100644 (file)
index f64183c..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-mkdir -p /opt/home/app
-chown app: /opt/home/app
-mkdir -p /home
-ln -s /opt/home/app /home/app
-ln -sf /opt/home/root /root