~serge-hallyn/ubuntu/quantal/lxc/lxc-fixapi

« back to all changes in this revision

Viewing changes to debian/local/lxc

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2011-07-13 01:36:32 UTC
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: james.westby@ubuntu.com-20110713013632-qg3vm7owezabdiaz
Tags: 0.7.4.2-1
* Taking over lxc together with Jonas, Guido is MIA.
* Removing useless whitespaces at EOL and EOF.
* Removing vcs field.
* Removing git-buildpackage conffile.
* Removing watch file.
* Updating to standards version 3.9.2.
* Moving from cdbs to debhelper version 8.
* Removing pre-squeeze version from libcap-dev build-depends.
* Sorting depends field.
* Adding debootstrap to recommends.
* Rewrite copyright file in machine-interpretable format.
* Prefixing debhelper files with package name.
* Removing lxc.docs, currently the references files do not contain
  useful information.
* Adding options file for dpkg source format.
* Rediffing libdir patch.
* Adding lxc wrapper script.
* Adding lxc-list script.
* Simplyfing manpages debhelper file.
* Adding patch to avoid FTBFS when building twice in a row (Closes:
  #615485).
* Rewriting README.Debian (Closes: #618928).
* Sorting debhelper dirs file.
* Including examples from upstream documentation.
* Adding patch for debian template to also disable module-init-tools
  initscript.
* Removing superfluous section field.
* Adding todo file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
set -e
 
4
 
 
5
_COMMAND="${1}"
 
6
 
 
7
if [ -n "${_COMMAND}" ]
 
8
then
 
9
        shift
 
10
else
 
11
        echo "Usage: ${0} COMMAND CONTAINER"
 
12
        exit 1
 
13
fi
 
14
 
 
15
if [ ! -x "$(which lxc-${_COMMAND} 2>/dev/null)" ]
 
16
then
 
17
        echo "E: lxc-${_COMMAND} - no such command"
 
18
        exit 1
 
19
fi
 
20
 
 
21
_CONTAINER="${1}"
 
22
 
 
23
if [ -n "${_CONTAINER}" ]
 
24
then
 
25
        shift
 
26
 
 
27
        if ! lxc-ls | grep -qs ^${_CONTAINER}$
 
28
        then
 
29
                echo "E: ${_CONTAINER} - no such container"
 
30
                exit 1
 
31
        fi
 
32
 
 
33
        _OPTIONS="--name ${_CONTAINER}"
 
34
else
 
35
        echo "Usage: ${0} COMMAND CONTAINER"
 
36
        exit 1
 
37
fi
 
38
 
 
39
lxc-${_COMMAND} ${_OPTIONS} ${@}