lxcfのリポジトリ
Revision | 5c8a8b474767ee4a73319920e60b5984fce8df6a (tree) |
---|---|
Time | 2015-02-02 16:57:07 |
Author | niwa-hideyuki <niwa.hideyuki@jp.f...> |
Commiter | niwa-hideyuki |
addition of net-list
@@ -0,0 +1,28 @@ | ||
1 | +#!/bin/bash | |
2 | +# copyright (C) 2015 FUJITSU LIMITED All Rights Reserved | |
3 | + | |
4 | +# This program is free software; you can redistribute it and/or | |
5 | +# modify it under the terms of the GNU General Public License | |
6 | +# as published by the Free Software Foundation; version 2 | |
7 | +# of the License. | |
8 | +# | |
9 | +# This program is distributed in the hope that it will be useful, | |
10 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | +# GNU General Public License for more details. | |
13 | +# | |
14 | +# You should have received a copy of the GNU General Public License | |
15 | +# along with this program; if not, write to the Free Software | |
16 | +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | |
17 | +# 02110-1301, USA. | |
18 | + | |
19 | +# check root | |
20 | +if [ ${EUID:-${UID}} != 0 ]; then | |
21 | + echo "error: Because you are not root, you cannot execute this command. " | |
22 | + exit 1 | |
23 | +fi | |
24 | + | |
25 | +/usr/lib64/lxcf/lxcf-net-list $* | |
26 | + | |
27 | +exit $? | |
28 | + |