Hexxeh / rpi-update

An easier way to update the firmware of your Raspberry Pi
MIT License
1.94k stars 232 forks source link

Feature request: -Y option to force update if any available #181

Closed Ruffio closed 9 years ago

Ruffio commented 9 years ago

I'm building a web interface to control the RPi and it would be nice if there could be added a -y option, so if there are any updates available, the update is performed automatically.

I have tried various options but cant find options or man pages that can tell me if such an option exists.

tundratim commented 9 years ago

I also very much want this ability. I want to be able to execute this program under automated workflows. Forcing user interfaction will break such tool (tsshbatch, capistrano, ansible, rundeck ...)

tundratim commented 9 years ago

It seems that doing this first, gives desired behavior:

export SKIP_WARNING=1

Is this a new feature or was it there and I just missed it in the doc somehow?

Ruffio commented 9 years ago

How exactly do you do this? The other options are set like: sudo XXXX rpi-update

popcornmix commented 9 years ago

sudo SKIP_WARNING=1 rpi-update would also work (they both just set a env variable).

Ruffio commented 9 years ago

Thanks, this works perfectly :-)

It should be documented so no one is in doubt.