]>
Commit | Line | Data |
---|---|---|
af5bc85d LP |
1 | /*** |
2 | This file is part of systemd. | |
3 | ||
4 | Copyright 2010 Lennart Poettering | |
5 | ||
6 | systemd is free software; you can redistribute it and/or modify it | |
5430f7f2 LP |
7 | under the terms of the GNU Lesser General Public License as published by |
8 | the Free Software Foundation; either version 2.1 of the License, or | |
af5bc85d LP |
9 | (at your option) any later version. |
10 | ||
11 | systemd is distributed in the hope that it will be useful, but | |
12 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
5430f7f2 | 14 | Lesser General Public License for more details. |
af5bc85d | 15 | |
5430f7f2 | 16 | You should have received a copy of the GNU Lesser General Public License |
af5bc85d LP |
17 | along with systemd; If not, see <http://www.gnu.org/licenses/>. |
18 | ***/ | |
19 | ||
af5bc85d | 20 | #include <stdio.h> |
cf0fbc49 | 21 | #include <string.h> |
af5bc85d | 22 | |
2da780b9 | 23 | #include "log.h" |
cf0fbc49 | 24 | #include "loopback-setup.h" |
af5bc85d LP |
25 | |
26 | int main(int argc, char* argv[]) { | |
27 | int r; | |
28 | ||
2da780b9 | 29 | log_open(); |
3becdb8a | 30 | log_set_max_level(LOG_DEBUG); |
2da780b9 TG |
31 | log_parse_environment(); |
32 | ||
3cc2aff1 LP |
33 | r = loopback_setup(); |
34 | if (r < 0) | |
35bca925 | 35 | log_error_errno(r, "loopback: %m"); |
af5bc85d | 36 | |
f26b57d1 | 37 | return r >= 0 ? EXIT_SUCCESS : EXIT_FAILURE; |
af5bc85d | 38 | } |