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 # if $DISPLAY is not set or $SSH_TTY is set
38 if test -z "$DISPLAY" || test -n "$SSH_TTY" || test -e /tmp/.bbp-unattended
44 # Extra warning doesn't apply to SDK, just exit
48 f=/tmp/busybox-power-msg
50 Warning: This package touches an essential system binary!
51 Even though installation should be safe, a reflash might be required
52 if something does go wrong (i.e. worst-case scenario).
54 Files overwritten by this package:
57 echo "Please confirm the text on the screen of your device"
58 maemo-confirm-text "Installation notes" $f
64 f=/tmp/busybox-power-msg
66 Warning: This package touches an essential system binary!
67 Even though installation should be safe, a reflash might be required if something does go wrong (i.e. worst-case scenario).
69 Please back up all your valuable data before installing busybox-power.
71 Files overwritten by this package:
74 echo "Please confirm the text on the screen of your device"
75 meego-confirm-text "Installation notes" $f > /dev/null 2>&1