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

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

fix

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