aboutsummaryrefslogtreecommitdiff
path: root/bin/lxc-setup
diff options
context:
space:
mode:
authorCamil Staps2017-02-20 10:06:38 +0100
committerCamil Staps2017-02-20 10:06:38 +0100
commit73ae3a47a410eb2db9c3c776c0252e1feaeb2d7e (patch)
tree4835551f5d769ede433ed390d3cfc2406975480c /bin/lxc-setup
parentCloogle stats in status bar (diff)
Reorganise binaries
Diffstat (limited to 'bin/lxc-setup')
-rwxr-xr-xbin/lxc-setup20
1 files changed, 0 insertions, 20 deletions
diff --git a/bin/lxc-setup b/bin/lxc-setup
deleted file mode 100755
index 08824a8..0000000
--- a/bin/lxc-setup
+++ /dev/null
@@ -1,20 +0,0 @@
-# https://wiki.debian.org/LXC
-# https://lists.linuxcontainers.org/pipermail/lxc-devel/2014-February/008088.html
-# https://lists.debian.org/debian-user/2015/05/msg00162.html
-# https://wiki.debian.org/LXC/SimpleBridge
-# http://box.matto.nl/lxconlaptop.html
-# https://coderwall.com/p/k0gutq/clean-lxc-nat-configuration-debian-wheezy
-
-for d in /sys/fs/cgroup/*
-do
- f=$(basename $d)
- echo "looking at $f"
- if [ "$f" = "cpuset" ]; then
- echo 1 | sudo tee -a $d/cgroup.clone_children;
- elif [ "$f" = "memory" ]; then
- echo 1 | sudo tee -a $d/memory.use_hierarchy;
- fi
- sudo mkdir $d/$USER
- sudo chown -R $USER: $d/$USER
- echo $$ > $d/$USER/tasks
-done