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: Maemo (N900) environment detected"
19 ENVIRONMENT="FREMANTLE"
22 echo "busybox-power: MeeGo/Harmattan (N9/50) environment detected"
23 ENVIRONMENT="HARMATTAN"
26 echo "busybox-power: unsupported environment: $PROD"
34 # Extra warning doesn't apply to SDK, just exit
38 f=/tmp/busybox-power-msg
40 Warning: This package touches an essential system binary!
41 Even though installation should be safe, a reflash might be required if something does go wrong (i.e. worst-case scenario).
43 Files overwritten by this package:
46 echo "Please confirm the text on the screen of your device"
47 maemo-confirm-text "Installation notes" $f
53 f=/tmp/busybox-power-msg
55 Warning: This package touches an essential system binary!
56 Even though installation should be safe, a reflash might be required if something does go wrong (i.e. worst-case scenario).
58 Please back up all your valuable data before installing busybox-power.
60 Files overwritten by this package:
63 echo "Please confirm the text on the screen of your device"
64 meego-confirm-text "Installation notes" $f > /dev/null 2>&1