Faheem Pervez wrote: > I do not know what provides /proc/bootreason but (if it's the kernel, > like I'm hoping), it may be easier to not make it say "charger" in > bootreason if it's booted with a charger.
linux/arch/arm/plat-omap/bootreason.c cfg = omap_get_config(OMAP_TAG_BOOT_REASON, struct omap_boot_reason_config); strncpy(boot_reason, cfg->reason_str, sizeof(cfg->reason_str)); Should be easy to replace "charger" for "pwr_key" there. _______________________________________________ maemo-developers mailing list [email protected] https://lists.maemo.org/mailman/listinfo/maemo-developers
