source: trunk/debian/packages/swconfig11/trunk/debian/swconfig11.postinst @ 838

Last change on this file since 838 was 838, checked in by amain, 4 years ago

swconfig11: latest fixes / rename from swconfig

  • Property svn:executable set to *
File size: 437 bytes
Line 
1#!/bin/sh
2#
3# DPKG variables available:
4#
5# DPKG_ADMINDIR
6# DPKG_MAINTSCRIPT_ARCH
7# DPKG_MAINTSCRIPT_NAME
8# DPKG_MAINTSCRIPT_PACKAGE
9# DPKG_MAINTSCRIPT_PACKAGE_REFCOUNT
10# DPKG_RUNNING_VERSION
11set -e
12
13# Install alternative for each switch API version, use api version as prio
14package=${DPKG_MAINTSCRIPT_PACKAGE}
15prio=${package#swconfig}
16
17update-alternatives --install /usr/sbin/swconfig swconfig /usr/sbin/${package} ${prio}
18
19#DEBHELPER#
Note: See TracBrowser for help on using the repository browser.