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"
36 # Don't show the warning message when the user wants an unattended installation
37 # or if $DISPLAY is not set
38 if test -z "$DISPLAY" || test -e /tmp/.bbp-unattended; then exit 0; fi
43 # Extra warning doesn't apply to SDK, just exit
47 f=/tmp/busybox-power-msg
49 Warning: This package touches an essential system binary!
50 Even though installation should be safe, a reflash might be required
51 if something does go wrong (i.e. worst-case scenario).
53 Files overwritten by this package:
56 echo "Please confirm the text on the screen of your device"
57 maemo-confirm-text "Installation notes" $f
63 f=/tmp/busybox-power-msg
65 Warning: This package touches an essential system binary!
66 Even though installation should be safe, a reflash might be required if something does go wrong (i.e. worst-case scenario).
68 Please back up all your valuable data before installing busybox-power.
70 Files overwritten by this package:
73 echo "Please confirm the text on the screen of your device"
74 meego-confirm-text "Installation notes" $f > /dev/null 2>&1