--restore option
Brought to you by:
radiojoe
If i want to restore a previous init.d scripts configuration and priority (for example during a multi-installation or a system recovery) i give the command:
awk '{ print "sysv-rc-conf --level " $1 " " $4 " " ($2 == "S" ? "on": "off"); }' /var/lib/sysv-rc-conf/myservices
I think it would be very useful to add a --restore option that would perform the same result but in this way:
sysv-rc-conf --restore mycachefile
Regards
Paolo Alberti
edit---
of course it is:
sysv-rc-conf --restore myservices
and not
sysv-rc-conf --restore mycachefile
sorry.
And i created myservices file in this way:
sysv-rc-conf --cache myservices