source: ipk/source/bootlogos_bikergirl_0_1/CONTROL/preinst@ 23353

Last change on this file since 23353 was 23353, checked in by nit, 13 years ago

[titan] update bootlogo and font plugin for new tpk install

  • Property svn:executable set to *
File size: 895 bytes
Line 
1#!/bin/sh
2#
3TMP=/tmp/.bootlogos
4echo "syncing disk"
5sync
6
7model=`cat /etc/model`
8echo""
9echo "Checking your Boxtype...."
10echo "Some Plugins will not work correctly on your $model!"
11echo ""
12if [ "$model" = "" ]; then
13 echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
14 echo "Aborting installation..."
15 exit 1
16else
17 echo "Boxtype: $model OK"
18fi
19
20echo "rename /var/etc/boot/bootlogo.jpg -> /var/etc/boot/original.jpg"
21mv /var/etc/boot/bootlogo.jpg /var/etc/boot/original.jpg
22
23echo "installing bootlogo ..."
24
25buildgroup=`cat /etc/.buildgroup`
26echo "checking OS"
27if [ `cat /etc/motd | grep $buildgroup | grep M | grep rev | wc -l` -eq 0 ]; then
28 echo ---------------------------
29 echo DONT USE this IPK Package!!
30 echo ---
31 echo Only for $buildgroup Image!!
32 echo ---------------------------
33 exit 1
34fi
35exit 0
Note: See TracBrowser for help on using the repository browser.