diff options
author | James Meyer <james.meyer@operamail.com> | 2009-09-08 20:19:07 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2009-09-08 20:19:07 (GMT) |
commit | 6b53e00c3f25bee6babd8e11ff6e846ad3f2107d (patch) | |
tree | 773881bec20ad010ec2274d1529caf580cc120a4 /abs/core-testing/etcnet/etcnet.install | |
parent | 95bfe5ff669cf3a9ab9b6791e49567b4be8dab03 (diff) | |
download | linhes_pkgbuild-6b53e00c3f25bee6babd8e11ff6e846ad3f2107d.zip linhes_pkgbuild-6b53e00c3f25bee6babd8e11ff6e846ad3f2107d.tar.gz linhes_pkgbuild-6b53e00c3f25bee6babd8e11ff6e846ad3f2107d.tar.bz2 |
etcnet: remove options file from pkg.
post-install: on upgrade and backup options file exisits recreate the network interface.
closes FS#482
Diffstat (limited to 'abs/core-testing/etcnet/etcnet.install')
-rwxr-xr-x | abs/core-testing/etcnet/etcnet.install | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/abs/core-testing/etcnet/etcnet.install b/abs/core-testing/etcnet/etcnet.install index a8b8b17..f34629f 100755 --- a/abs/core-testing/etcnet/etcnet.install +++ b/abs/core-testing/etcnet/etcnet.install @@ -30,7 +30,11 @@ pre_upgrade() { # arg 1: the new package version # arg 2: the old package version post_upgrade() { - /bin/true + if [ -f /etc/net/ifaces/eth0/options.pacsave ] + then + systemconfig.py -m network + mv /etc/net/ifaces/eth0/options.pacsave /etc/net/ifaces/eth0/options.pacsave.orig + fi } # arg 1: the old package version |