~james-page/ubuntu/saucy/openvswitch/1.12-snapshot

« back to all changes in this revision

Viewing changes to debian/openvswitch-switch.postinst

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-08-07 16:00:53 UTC
  • mfrom: (5.1.25 sid)
  • Revision ID: package-import@ubuntu.com-20120807160053-nj4pgmkn6bp8t4md
Tags: 1.4.2+git20120612-9ubuntu1
* Merge from Debian unstable; remaining changes:
  - d/control: Disable openvswitch-datapath-dkms package.
* Dropped changes:
  - d/patches/kernel_3.5_support.patch: Superceded by 
    bug-684057-ovs-ctl-Add-support-for-newer-module-name.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
                fi
34
34
            done
35
35
        fi
 
36
 
 
37
        # Ensure that /etc/openvswitch/conf.db links to /var/lib/openvswitch,
 
38
        # moving an existing file if there is one.
 
39
        #
 
40
        # Ditto for .conf.db.~lock~.
 
41
        for base in conf.db .conf.db.~lock~; do
 
42
            new=/var/lib/openvswitch/$base
 
43
            old=/etc/openvswitch/$base
 
44
            if test -f $old && test ! -e $new; then
 
45
                mv $old $new
 
46
            fi
 
47
            if test ! -e $old && test ! -h $old; then
 
48
                ln -s $new $old
 
49
            fi
 
50
        done
36
51
        ;;
37
52
 
38
53
    abort-upgrade|abort-remove|abort-deconfigure)