4 |
- |
1 |
#!/bin/sh
|
9 |
- |
2 |
|
|
|
3 |
# the following is the LSB init header
|
4 |
- |
4 |
#
|
|
|
5 |
### BEGIN INIT INFO
|
|
|
6 |
# Provides: netcf-transaction
|
|
|
7 |
# Required-Start: $local_fs
|
9 |
- |
8 |
# Default-Start: 2 3 4 5
|
4 |
- |
9 |
# Short-Description: save/restore network configuration files
|
|
|
10 |
# Description: This script can save the current state of network config,
|
|
|
11 |
# and later revert to that config, or commit the new config
|
|
|
12 |
# (by deleting the snapshot). At boot time, if there are
|
|
|
13 |
# uncommitted changes to the network config, they are
|
|
|
14 |
# reverted (and the discarded changes are archived in
|
|
|
15 |
# /var/lib/netcf/network-rollback-*).
|
|
|
16 |
#
|
|
|
17 |
### END INIT INFO
|
|
|
18 |
|
9 |
- |
19 |
# the following is chkconfig init header
|
|
|
20 |
#
|
|
|
21 |
# netcf-transaction: save/restore current network interface configuration
|
|
|
22 |
#
|
|
|
23 |
# chkconfig: - 09 91
|
|
|
24 |
# description: This script can save the current state of network config, \
|
|
|
25 |
# and later revert to that config, or commit the new config \
|
|
|
26 |
# (by deleting the snapshot). At boot time, if there are \
|
|
|
27 |
# uncommitted changes to the network config, they are \
|
|
|
28 |
# reverted (and the discarded changes are archived in \
|
|
|
29 |
# /var/lib/netcf/network-rollback-*).
|
4 |
- |
30 |
|
9 |
- |
31 |
exec /usr/libexec/netcf-transaction.sh "$@"
|