|
Last change
on this file since 3783 was 3783, checked in by civer, 16 years ago |
|
[IPK]
- added 3d HD Picons for Astra19.2
- forbid installing "swapnetwork" IPKs on UFS912...still in the image...!
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 | #
|
|---|
| 3 | TMP=/tmp/.network
|
|---|
| 4 | echo "syncing disk"
|
|---|
| 5 | sync
|
|---|
| 6 |
|
|---|
| 7 | model=`cat /etc/model`
|
|---|
| 8 | echo""
|
|---|
| 9 | echo "Checking your Boxtype...."
|
|---|
| 10 | echo "Some Plugins will not work correctly on your $model!"
|
|---|
| 11 | echo ""
|
|---|
| 12 | if [ "$model" = "ufs912" ]; then
|
|---|
| 13 | echo "You don`t need this package on your $model !!"
|
|---|
| 14 | echo "Aborting installation..."
|
|---|
| 15 | exit 1
|
|---|
| 16 | elif [ "$model" = "" ]; then
|
|---|
| 17 | echo "Sorry! This Plugin is not available for your $model because it will not work correctly!!!"
|
|---|
| 18 | echo "Aborting installation..."
|
|---|
| 19 | exit 1
|
|---|
| 20 | else
|
|---|
| 21 | echo "Boxtype: $model OK"
|
|---|
| 22 | fi
|
|---|
| 23 |
|
|---|
| 24 | echo "checking swapstick"
|
|---|
| 25 | if [ ! -d /var/swap/lib/ ]; then
|
|---|
| 26 | echo "--------------------------"
|
|---|
| 27 | echo "no swapstick found...."
|
|---|
| 28 | echo "--------------------------"
|
|---|
| 29 | exit 1
|
|---|
| 30 | fi
|
|---|
| 31 | echo "swapstick found...."
|
|---|
| 32 | echo "installing Networkfile libsmbclient 3.0.28 to swapstick..."
|
|---|
| 33 | echo "checking OS"
|
|---|
| 34 | if [ `cat /etc/motd | grep AAF | grep M | grep rev | wc -l` -eq 0 ]; then
|
|---|
| 35 | echo ---------------------------
|
|---|
| 36 | echo DONT USE this IPK Package!!
|
|---|
| 37 | echo ---
|
|---|
| 38 | echo Only for AAF Image!!
|
|---|
| 39 | echo ---------------------------
|
|---|
| 40 | exit 1
|
|---|
| 41 | fi
|
|---|
| 42 | echo "deleting libsmbclient.so.0 LINK in /var/usr/lib"
|
|---|
| 43 | rm /var/usr/lib/libsmbclient.so.0
|
|---|
| 44 | exit 0
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.