mutability / dump1090

Dump1090 is a simple Mode S decoder for RTLSDR devices
528 stars 137 forks source link

Skip the start dump1090 automatically question. #168

Closed jprochazka closed 7 years ago

jprochazka commented 7 years ago

When installing the dump1090-mutability package the user is asked if dump1090-mutability should be started automatically. Being that %99.9999 of the time this will be answered by a yes by the user is there a way to skip having to answer this question and have it default to yes so installation continues on uninterrupted?

Romeo-Golf commented 7 years ago

I would also find this useful ;)

ralin3 commented 7 years ago

If you install debconf-utils, you can bypass it by preseeding the answer:

echo 'dump1090-mutability     dump1090-mutability/auto-start  boolean true' > /root/dump1090.seed
debconf-set-selections /root/dump1090.seed

Better to fix it of course, but at least it works for now.

mutability commented 7 years ago

That is in fact the right way to fix it - prepopulate the answer in the debconf db.

Romeo-Golf commented 7 years ago

cheers, as suggested the following appears to do trick:

$ debconf-get-selections | grep "dump1090-mutability/auto-start" dump1090-mutability dump1090-mutability/auto-start boolean false

$ echo 'dump1090-mutability dump1090-mutability/auto-start boolean true' | debconf-set-selections -v info: Trying to set 'dump1090-mutability/auto-start' [boolean] to 'true' info: Loading answer for 'dump1090-mutability/auto-start'

$ debconf-get-selections | grep "dump1090-mutability/auto-start" dump1090-mutability dump1090-mutability/auto-start boolean true

:)