1 --- netcf-0.2.2/src/drv_redhat.c.orig 2012-08-01 05:12:43.000000000 +0200
2 +++ netcf-0.2.2/src/drv_redhat.c 2012-08-29 19:49:20.078576458 +0200
4 "/files/etc/sysconfig/network-scripts";
6 static const char *const ifcfg_path =
7 - "/files/etc/sysconfig/network-scripts/*";
8 + "/files/etc/sysconfig/interfaces/*";
10 /* Augeas should only load the files we are interested in */
11 static const struct augeas_pv augeas_xfm_common_pv[] = {
13 { "/augeas/load/Ifcfg/lens", "Sysconfig.lns" },
14 { "/augeas/load/Ifcfg/incl",
15 - "/etc/sysconfig/network-scripts/ifcfg-*" },
16 + "/etc/sysconfig/interfaces/ifcfg-*" },
17 { "/augeas/load/Ifcfg/excl[1]", "*~" },
18 { "/augeas/load/Ifcfg/excl[2]", "*.bak" },
19 { "/augeas/load/Ifcfg/excl[3]", "*.orig" },
20 --- netcf-0.2.4/src/netcf-transaction.sh.in.orig 2011-05-20 20:40:22.000000000 +0200
21 +++ netcf-0.2.4/src/netcf-transaction.sh.in 2011-08-13 09:14:09.519761783 +0200
23 sysconfdir="@sysconfdir@"
24 localstatedir="@localstatedir@"
26 -netconfdir="$sysconfdir"/sysconfig/network-scripts
27 +netconfdir="$sysconfdir"/sysconfig/interfaces
28 snapshotdir="$localstatedir"/lib/netcf/network-snapshot
29 rollbackdirbase="$localstatedir"/lib/netcf/network-rollback
31 # Source function library.
32 -test ! -r "$sysconfdir"/rc.d/init.d/functions ||
33 - . "$sysconfdir"/rc.d/init.d/functions
34 +. "$sysconfdir"/rc.d/init.d/functions
36 # take a snapshot of current network configuration scripts
40 # Display usage string, then exit with VAL (defaults to 2).
42 - echo $"Usage: $0 {change-begin|change-commit|change-rollback|snapshot-dir|start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
44 + msg_usage "$0 {change-begin|change-commit|change-rollback|snapshot-dir|start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
48 # See how we were called.
51 # commands required in all Fedora initscripts
52 start|restart|reload|force-reload|condrestart|try-restart)
53 - echo -n $"Running $prog $1: "
54 + nls "Forcing network configuration rollback"
56 # ignore the "no pending transaction" error
57 test "$retval" != "$EINVALID_IN_THIS_STATE" && retval=$?
60 if test -d "$snapshotdir"
62 - echo $"There is an open transaction"
63 + nls "There is an open transaction"
65 - echo $"No open transaction"
66 + nls "No open transaction"