[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Opportunistic apt sources?



On 19.4.2010 1:52, Ron Johnson wrote:
> On 2010-04-18 17:20, Richard Hartmann wrote:
>> Hi all,
>>
>> I was wondering if there was any such thing as an opportunistic apt
>> source.
>> ...
>> Does anything like the above exist?
> 
> I'd use symlinks, where sources.list points to either sources.list.home,
> sources.list.work or sources.list.internet, and a short script to flip
> between them.

In addition to Ron's flip script maybe use some heuristics to determine which
network you're connected to and write a small wrapper to apt-get/aptitude or a
script to /etc/network/if-up.d that flips the symlink to correct sources.list
automagically.

-- 
Juha Tuuna


Reply to: