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 This is a public testing release of busybox-power for Harmattan. USE AT YOUR OWN RISK.
56 Do note that even though the installation should roll-back all its changes upon the slightest error during installation, there might still be bugs in this mechanism.
58 This warning will eventually be replaced with busybox-power's usual warning as found below.
61 Warning: This package touches an essential system binary!
62 Even though installation should be safe, a reflash might be required if something does go wrong (i.e. worst-case scenario).
64 Files overwritten by this package:
67 echo "Please confirm the text on the screen of your device"
68 meego-confirm-text "Installation notes" $f > /dev/null 2>&1