Webconverger / webc

Webconverger's curated chroot from which updates originate
https://webconverger.org/upgrade/
73 stars 37 forks source link

dns="a.b.c.d,w.x.y.z" API #41

Closed kaihendry closed 12 years ago

kaihendry commented 12 years ago

For http://webconverger.org/filtering/

patrickhaller commented 12 years ago

Use this in /etc/webc/network-up.d/resolvconf to rewrite /etc/resolv.conf every time post network up.

kaihendry commented 12 years ago

Could you please flesh out the code because I don't quite understand... I was thinking it would be added to fix_chrome in https://github.com/Webconverger/webc/blob/master/etc/webc/live-config.sh after it fetching a config with a dns=8.8.8.8,8.8.4.4 line.

patrickhaller commented 12 years ago

in https://github.com/Webconverger/webc/commit/4f7ae12686640259b207c3ffc923878177a297f9 needs testing, though.

kaihendry commented 12 years ago

Thanks, maybe I'm having a bad day, but I don't understand how you can assume the configuration will be retrieved on this network-up.d/ stage. You need to call update_cmdline https://github.com/Webconverger/webc/blob/master/etc/webc/live-config.sh#L88 no?

Or are you thinking HD install where config is already saved?

patrickhaller commented 12 years ago

On 2012-05-23 04:02, Kai Hendry wrote:

Thanks, maybe I'm having a bad day, but I don't understand how you can assume the configuration will be retrieved on this network-up.d/ stage. You need to call update_cmdline https://github.com/Webconverger/webc/blob/master/etc/webc/live-config.sh#L88 no?

https://github.com/Webconverger/webc/commit/341b7aec97e4732df55b5f1b59408ac064b0962e

Or are you thinking HD install where config is already saved?

Yup.

kaihendry commented 12 years ago

Hmm, can you ping http://www.scrubit.com/ IPs dns=67.138.54.100,207.225.209.66 ? because i can't...

I prefer if the API is sans quotation marks. Hope that's OK

patrickhaller commented 12 years ago

On 2012-05-23 05:59, Kai Hendry wrote:

Hmm, can you ping http://www.scrubit.com/ IPs dns=67.138.54.100,207.225.209.66 ? because i can't...

Not here either.

I prefer if the API is sans quotation marks. Hope that's OK

Doesn't matter, /etc/webc/network-up.d/resolvconf strips out quotes.

kaihendry commented 12 years ago

You OK with this patch?

/me wonders how github handles patch in an issue...