also sprach Jose Calhariz <jose.calha...@tagus.ist.utl.pt> [2010.01.05.0723 
+1300]:
> In my use cases I have find other ways for running code for
> different "LOCATION".

What do you use?

> Usually you need to run things before and after the change.  Instead
> of creating a new directory to store scripts.  Why not recycle
> before.d and after.d?  During the switch, file
> /var/lib/misc/switchconf.lastcfg have the name of the old conf.
> If I start calling the scripts with the new conf.  You have all the
> information you may need:  
>   - $1=NextConf 
>   - `cat /var/lib/misc/switchconf.lastcfg`=OldConf. 

Sure, that would work.

-- 
 .''`.   martin f. krafft <madd...@d.o>      Related projects:
: :'  :  proud Debian developer               http://debiansystem.info
`. `'`   http://people.debian.org/~madduck    http://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to