710bde5e52ec3f1260f0ed7d50b7c46a8d7bbda3S.Çağlar Onur * Copyright © 2014 S.Çağlar Onur <caglar@10ur.org>
710bde5e52ec3f1260f0ed7d50b7c46a8d7bbda3S.Çağlar Onur * This program is free software; you can redistribute it and/or modify
710bde5e52ec3f1260f0ed7d50b7c46a8d7bbda3S.Çağlar Onur * it under the terms of the GNU General Public License version 2, as
710bde5e52ec3f1260f0ed7d50b7c46a8d7bbda3S.Çağlar Onur * published by the Free Software Foundation.
710bde5e52ec3f1260f0ed7d50b7c46a8d7bbda3S.Çağlar Onur * This program is distributed in the hope that it will be useful,
710bde5e52ec3f1260f0ed7d50b7c46a8d7bbda3S.Çağlar Onur * but WITHOUT ANY WARRANTY; without even the implied warranty of
710bde5e52ec3f1260f0ed7d50b7c46a8d7bbda3S.Çağlar Onur * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
710bde5e52ec3f1260f0ed7d50b7c46a8d7bbda3S.Çağlar Onur * GNU General Public License for more details.
710bde5e52ec3f1260f0ed7d50b7c46a8d7bbda3S.Çağlar Onur * You should have received a copy of the GNU General Public License along
710bde5e52ec3f1260f0ed7d50b7c46a8d7bbda3S.Çağlar Onur * with this program; if not, write to the Free Software Foundation, Inc.,
710bde5e52ec3f1260f0ed7d50b7c46a8d7bbda3S.Çağlar Onur * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
710bde5e52ec3f1260f0ed7d50b7c46a8d7bbda3S.Çağlar Onur fprintf(stderr, "Unable to instantiate container (%s)...\n", NAME);
710bde5e52ec3f1260f0ed7d50b7c46a8d7bbda3S.Çağlar Onur if (!c->create(c, "busybox", NULL, NULL, 1, NULL)) {
710bde5e52ec3f1260f0ed7d50b7c46a8d7bbda3S.Çağlar Onur fprintf(stderr, "Creating the container (%s) failed...\n", NAME);
710bde5e52ec3f1260f0ed7d50b7c46a8d7bbda3S.Çağlar Onur fprintf(stderr, "Starting the container (%s) failed...\n", NAME);
710bde5e52ec3f1260f0ed7d50b7c46a8d7bbda3S.Çağlar Onur fprintf(stderr, "Adding %s to the container (%s) failed...\n", DEVICE, NAME);
710bde5e52ec3f1260f0ed7d50b7c46a8d7bbda3S.Çağlar Onur if (!c->remove_device_node(c, DEVICE, DEVICE)) {
710bde5e52ec3f1260f0ed7d50b7c46a8d7bbda3S.Çağlar Onur fprintf(stderr, "Removing %s from the container (%s) failed...\n", DEVICE, NAME);
710bde5e52ec3f1260f0ed7d50b7c46a8d7bbda3S.Çağlar Onur if (!c->stop(c)) {
710bde5e52ec3f1260f0ed7d50b7c46a8d7bbda3S.Çağlar Onur fprintf(stderr, "Stopping the container (%s) failed...\n", NAME);
710bde5e52ec3f1260f0ed7d50b7c46a8d7bbda3S.Çağlar Onur if (!c->destroy(c)) {
710bde5e52ec3f1260f0ed7d50b7c46a8d7bbda3S.Çağlar Onur fprintf(stderr, "Destroying the container (%s) failed...\n", NAME);