diff options
Diffstat (limited to 'demo/custom/scripts')
-rw-r--r-- | demo/custom/scripts/buildname.nochroot | 3 | ||||
-rw-r--r-- | demo/custom/scripts/cleanup.post | 6 | ||||
-rw-r--r-- | demo/custom/scripts/flash.post | 5 | ||||
-rw-r--r-- | demo/custom/scripts/fstab-n900.post | 5 | ||||
-rw-r--r-- | demo/custom/scripts/inittab-n900.post | 3 | ||||
-rw-r--r-- | demo/custom/scripts/kboot.post | 3 | ||||
-rw-r--r-- | demo/custom/scripts/kernel-handset.post | 17 | ||||
-rw-r--r-- | demo/custom/scripts/prelink.post | 4 | ||||
-rw-r--r-- | demo/custom/scripts/rpm.post | 7 | ||||
-rw-r--r-- | demo/custom/scripts/serial-mfld.post | 4 | ||||
-rw-r--r-- | demo/custom/scripts/serial.post | 2 | ||||
-rw-r--r-- | demo/custom/scripts/u-boot.post | 4 |
12 files changed, 63 insertions, 0 deletions
diff --git a/demo/custom/scripts/buildname.nochroot b/demo/custom/scripts/buildname.nochroot new file mode 100644 index 0000000..edd20a7 --- /dev/null +++ b/demo/custom/scripts/buildname.nochroot @@ -0,0 +1,3 @@ +if [ -n "$IMG_NAME" ]; then + echo "BUILD: $IMG_NAME" >> $INSTALL_ROOT/etc/meego-release +fi diff --git a/demo/custom/scripts/cleanup.post b/demo/custom/scripts/cleanup.post new file mode 100644 index 0000000..c36c2e4 --- /dev/null +++ b/demo/custom/scripts/cleanup.post @@ -0,0 +1,6 @@ + +# save a little bit of space at least... +rm -f /boot/initrd* + +# make sure there aren't core files lying around +rm -f /core* diff --git a/demo/custom/scripts/flash.post b/demo/custom/scripts/flash.post new file mode 100644 index 0000000..fe062d3 --- /dev/null +++ b/demo/custom/scripts/flash.post @@ -0,0 +1,5 @@ +# verify link of flash plugin +if [ -f /usr/lib/flash-plugin/setup ]; then + sh /usr/lib/flash-plugin/setup install + rm -f /root/oldflashplugins.tar.gz +fi diff --git a/demo/custom/scripts/fstab-n900.post b/demo/custom/scripts/fstab-n900.post new file mode 100644 index 0000000..03b6fc1 --- /dev/null +++ b/demo/custom/scripts/fstab-n900.post @@ -0,0 +1,5 @@ + +# Use eMMC swap partition as MeeGo swap as well. +# Because of the 2nd partition is swap for the partition numbering +# we can just change the current fstab entry to match the eMMC partition. +sed -i 's/mmcblk0p2/mmcblk1p3/g' /etc/fstab diff --git a/demo/custom/scripts/inittab-n900.post b/demo/custom/scripts/inittab-n900.post new file mode 100644 index 0000000..4650a2f --- /dev/null +++ b/demo/custom/scripts/inittab-n900.post @@ -0,0 +1,3 @@ + +# open serial line console for embedded system +echo "s0:235:respawn:/sbin/agetty -L 115200 ttyS2 vt100" >> /etc/inittab diff --git a/demo/custom/scripts/kboot.post b/demo/custom/scripts/kboot.post new file mode 100644 index 0000000..d5d5183 --- /dev/null +++ b/demo/custom/scripts/kboot.post @@ -0,0 +1,3 @@ +#Create Initrd if it does not exist and create symlinks for bzImage and initrd for kboot autoboot +echo "ro pci=noearly console=tty1 console=ttyS0 console=ttyMFD2 earlyprintk=mrst loglevel=8 s0ix_latency=160" > /boot/kboot.cmdline + diff --git a/demo/custom/scripts/kernel-handset.post b/demo/custom/scripts/kernel-handset.post new file mode 100644 index 0000000..cb07f6c --- /dev/null +++ b/demo/custom/scripts/kernel-handset.post @@ -0,0 +1,17 @@ +echo "Checking for kernel......." +Kernel_Name=`ls /boot | grep vmlinuz` +if [ -f /boot/$Kernel_Name ]; then + Kernel_Ver=`echo $Kernel_Name | sed s/vmlinuz-//` + if [ -f /boot/initrd* ]; then + echo "Initrd exists" > /dev/null + else + /usr/libexec/mkmrstinitrd /boot/initrd-$Kernel_Ver.img $Kernel_Ver + fi + #Create Symlinks + cd /boot + ln -s $Kernel_Name bzImage + ln -s initrd-$Kernel_Ver.img initrd + ln -s kboot.cmdline cmdline +else + echo "No Kernels were found" +fi diff --git a/demo/custom/scripts/prelink.post b/demo/custom/scripts/prelink.post new file mode 100644 index 0000000..527548c --- /dev/null +++ b/demo/custom/scripts/prelink.post @@ -0,0 +1,4 @@ +# Prelink can reduce boot time +if [ -x /usr/sbin/prelink ]; then + /usr/sbin/prelink -aRqm +fi diff --git a/demo/custom/scripts/rpm.post b/demo/custom/scripts/rpm.post new file mode 100644 index 0000000..6a07394 --- /dev/null +++ b/demo/custom/scripts/rpm.post @@ -0,0 +1,7 @@ +# work around for poor key import UI in PackageKit +rm -f /var/lib/rpm/__db* +rpm --rebuilddb + +if [ -f /etc/pki/rpm-gpg/RPM-GPG-KEY-meego ]; then + rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-meego +fi diff --git a/demo/custom/scripts/serial-mfld.post b/demo/custom/scripts/serial-mfld.post new file mode 100644 index 0000000..c3c62b0 --- /dev/null +++ b/demo/custom/scripts/serial-mfld.post @@ -0,0 +1,4 @@ +# open serial line console for embedded system +echo "s0:235:respawn:/sbin/agetty -L 115200 ttyS0 vt100" >> /etc/inittab +echo "s1:235:respawn:/sbin/agetty -L 115200 ttyMFD2 vt100" >> /etc/inittab +echo "ttyMFD2" >> /etc/securetty diff --git a/demo/custom/scripts/serial.post b/demo/custom/scripts/serial.post new file mode 100644 index 0000000..5961379 --- /dev/null +++ b/demo/custom/scripts/serial.post @@ -0,0 +1,2 @@ +# open serial line console for embedded system +echo "s0:235:respawn:/sbin/agetty -L 115200 ttyS0 vt100" >> /etc/inittab diff --git a/demo/custom/scripts/u-boot.post b/demo/custom/scripts/u-boot.post new file mode 100644 index 0000000..6377edc --- /dev/null +++ b/demo/custom/scripts/u-boot.post @@ -0,0 +1,4 @@ + + +# Create the /boot/uImage for u-boot support. +mkimage -A arm -O linux -T kernel -C none -a 80008000 -e 80008000 -n vmlinuz -d /boot/vmlinuz* /boot/uImage |