Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#6980 closed enhancement (fixed)

Add -p option to shut down when update is complete

Reported by: ffm Owned by: cscott
Priority: normal Milestone:
Component: upgrade utility Version:
Keywords: sugar-love Cc:
Blocked By: Blocking:
Deployments affected: Action Needed:
Verified: no

Description

This is a feature request. (if I have time I may later make a patch)

Add a -p (--poweroff) option to olpc-update to power off the XO when the update is complete.

Use Case:

Alice wants to update her XO, but is busy with other things. She sets it up with "olpc-update -p" and her XO turns off once it has the latest software version, as opposed to rebooting (which, if the machine is left unattended...)

Attachments (3)

0001-Add-p-option-to-shut-down-when-update-is-complete.patch (3.3 KB) - added by jpritikin 7 years ago.
untested patch, sorry I don't have an XO with me
0001-Add-p-option-to-shut-down-when-update-is-complete.2.patch (3.3 KB) - added by ffm 7 years ago.
fix syntax error in prior patch
Add-p-option.3.patch (3.4 KB) - added by cscott 7 years ago.
Revised patch, please test.

Download all attachments as: .zip

Change History (11)

comment:1 Changed 7 years ago by ffm

  • Keywords sugar-love added

Changed 7 years ago by jpritikin

untested patch, sorry I don't have an XO with me

comment:2 Changed 7 years ago by jpritikin

I attached a patch for this. Do I need to make a comment to get this bug to show up in the timeline?

Changed 7 years ago by ffm

fix syntax error in prior patch

comment:3 Changed 7 years ago by cscott

This seems to inadvertently extend http://wiki.laptop.org/go/Theft_Deterrence_Protocol to add 'poweroff' and 'reboot' priorities. I'm not convinced that this is actually the right way to implement this feature. Probably better would be to pass in an option to the bitfrost.update package to say 'urgent means shutdown', not to change the semantics of the 'priority' field.

Changed 7 years ago by cscott

Revised patch, please test.

comment:4 follow-up: Changed 7 years ago by cscott

See also trac #6014, #4877, #4878, which are related.

The current plan is to use the gnome-session infrastructure, see http://blogs.gnome.org/lucasr/2008/03/25/session-management-in-224/ (and talk to tomeu and marco).

comment:5 in reply to: ↑ 4 Changed 7 years ago by ffm

  • Blocked By 4877 added

Replying to cscott:

See also trac #6014, #4877, #4878, which are related.

The current plan is to use the gnome-session infrastructure, see http://blogs.gnome.org/lucasr/2008/03/25/session-management-in-224/ (and talk to tomeu and marco).

comment:6 Changed 7 years ago by cscott

  • Blocked By 4877 removed

Tested & fixed in olpc-update 2.6 (joyride-2000).

comment:7 Changed 7 years ago by cscott

  • Resolution set to fixed
  • Status changed from new to closed

comment:8 Changed 6 years ago by gregorio

  • Milestone Never Assigned deleted

Milestone Never Assigned deleted

Note: See TracTickets for help on using tickets.