switconf provides no hooks for before and after scripts to know new location

Bug #298136 reported by Andrew
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
switchconf (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: switchconf

The switchconf memfile "/var/lib/misc/switchconf.lastcfg", is not updated until the end of the script. This means that scripts in before.d and after.d do not know the new configuration name.

It would be helpful to either
(1) have a "/var/lib/misc/switchconf.newcfg" written at the start of the script, and deleted at the end,
(2) pass in the name as the first argument to the scripts or
(3) have the new config name as an environment variable for the scripts to reference

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.