case $PROD in
RX-51)
echo "busybox-power: Maemo (N900) environment detected"
- ENVIRONMENT="N900"
+ ENVIRONMENT="FREMANTLE"
;;
*)
# Unsupported, use the least strict environment (SDK)
# Extra warning doesn't apply to SDK, just exit
exit 0
;;
- N900)
+ FREMANTLE)
f=/tmp/busybox-power-msg
cat > $f <<EOF
Warning: This package touches an essential system binary!
PROD=$($EXECPWR cat /proc/component_version | $EXECPWR grep product | $EXECPWR cut -d" " -f 6)
case $PROD in
RX-51)
- ENVIRONMENT="N900"
+ ENVIRONMENT="FREMANTLE"
;;
*)
# Unsupported, use the least strict environment (SDK)
fi
}
-# Additional checks for the N900
-E_N900_CHECKS() {
+# Additional checks for Fremantle
+E_FREMANTLE_CHECKS() {
if test "`$EXECPWR id -u`" -ne 0; then
echo "error: you're not running me as root, aborting"
echo " also, DO NOT run me as a stand-alone application"
fi
}
-# N900-specific code executed prior to installing the enhanced binary
-E_N900_PREINST() {
+# Fremantle-specific code executed prior to installing the enhanced binary
+E_FREMANTLE_PREINST() {
$EXECPWR md5sum $INSTALLDIR/busybox.power | $EXECPWR awk '{ print $1 }' \
> $INSTALLDIR/busybox.power.md5
$EXECPWR md5sum /bin/busybox | $EXECPWR awk '{ print $1 }' \
SDK)
E_SDK_PREINST
;;
- N900)
- E_N900_CHECKS
- E_N900_PREINST
+ FREMANTLE)
+ E_FREMANTLE_CHECKS
+ E_FREMANTLE_PREINST
;;
esac
INSTALL
PROD=$(cat /proc/component_version | grep product | cut -d" " -f 6)
case $PROD in
RX-51)
- ENVIRONMENT="N900"
+ ENVIRONMENT="FREMANTLE"
;;
*)
# Unsupported, use the least strict environment (SDK)
fi
}
-# Additional checks for the N900
-E_N900_CHECKS() {
+# Additional checks for Fremantle
+E_FREMANTLE_CHECKS() {
if test "`id -u`" -ne 0; then
echo "error: you're not running me as root, aborting"
echo " also, DO NOT run me as a stand-alone application"
fi
}
-# N900-specific code executed prior to uninstalling the enhanced binary
-E_N900_PRERM() {
+# Fremantle-specific code executed prior to uninstalling the enhanced binary
+E_FREMANTLE_PRERM() {
if test -e $INSTALLDIR/busybox.power.md5; then
INSTBINARY_MD5=`md5sum /bin/busybox | awk '{ print $1 }'`
ORIGBINARY_MD5=`cat $INSTALLDIR/busybox.power.md5`
echo " Hit [ctrl-c] to break"
read
;;
- N900)
+ FREMANTLE)
echo "Click \"I Agree\" to ignore the above errors/warnings. Ask for help if you don't know what to do." >> /tmp/busybox-power-error
echo "Please confirm the text on the screen of your device"
maemo-confirm-text "Attention!" /tmp/busybox-power-error
CHECK_ENV && ECHO_VERBOSE " environment: $ENVIRONMENT"
GENERIC_CHECKS
case $ENVIRONMENT in
- N900)
- E_N900_CHECKS
- E_N900_PRERM
+ FREMANTLE)
+ E_FREMANTLE_CHECKS
+ E_FREMANTLE_PRERM
;;
esac
if test -e /tmp/busybox-power-error; then