3 test "$1" = install || exit 0 # upgrades are fine
6 if test -d /scratchbox; then
7 echo "busybox-power: Scratchbox environment detected"
10 if test -e /proc/component_version; then
11 PROD=$(cat /proc/component_version | grep product | cut -d" " -f 6)
13 PROD=$(/usr/bin/sysinfoclient --get /component/product | awk '{ print $3 }')
18 echo "busybox-power: Maemo4 (N8x0) environment detected"
22 echo "busybox-power: Maemo5 (N900) environment detected"
23 ENVIRONMENT="FREMANTLE"
26 echo "busybox-power: MeeGo/Harmattan (N9/50) environment detected"
27 ENVIRONMENT="HARMATTAN"
30 echo "busybox-power: unsupported environment: $PROD"
38 # Extra warning doesn't apply to SDK, just exit
42 f=/tmp/busybox-power-msg
44 Warning: This package touches an essential system binary!
45 Even though installation should be safe, a reflash might be required
46 if something does go wrong (i.e. worst-case scenario).
48 Files overwritten by this package:
51 echo "Please confirm the text on the screen of your device"
52 maemo-confirm-text "Installation notes" $f
58 f=/tmp/busybox-power-msg
60 Warning: This package touches an essential system binary!
61 Even though installation should be safe, a reflash might be required if something does go wrong (i.e. worst-case scenario).
63 Please back up all your valuable data before installing busybox-power.
65 Files overwritten by this package:
68 echo "Please confirm the text on the screen of your device"
69 meego-confirm-text "Installation notes" $f > /dev/null 2>&1