aboutsummaryrefslogtreecommitdiff
path: root/local/bin
diff options
context:
space:
mode:
Diffstat (limited to 'local/bin')
-rwxr-xr-xlocal/bin/lxc-net2
-rwxr-xr-xlocal/bin/mxrandr6
2 files changed, 4 insertions, 4 deletions
diff --git a/local/bin/lxc-net b/local/bin/lxc-net
index 0821571..53ccb50 100755
--- a/local/bin/lxc-net
+++ b/local/bin/lxc-net
@@ -37,5 +37,5 @@ subnet 192.168.30.0 netmask 255.255.255.0 {
dhcpd -4 -pf /tmp/lxc-dhcpd.pid -cf /tmp/lxc-dhcpd.conf vbr0
# Setup network forwarding (TODO add -o ethX to iptable command)
-sysctl net.ipv4.ip_forward=1
+sysctl -w net.ipv4.ip_forward=1
iptables -t nat -A POSTROUTING -j MASQUERADE
diff --git a/local/bin/mxrandr b/local/bin/mxrandr
index 81ae511..7c51128 100755
--- a/local/bin/mxrandr
+++ b/local/bin/mxrandr
@@ -8,9 +8,9 @@ disconnectedOutputs=$(xrandr | grep -E " disconnected (primary )?[1-9]+" | awk '
cmd="xrandr "
cmd_def=$cmd
-INTERNAL=eDP-1
-HDMI=HDMI-1
-VGA=VGA-1
+INTERNAL=eDP1
+HDMI=HDMI1
+VGA=VGA1
for device in "$disconnectedOutputs"; do
if [ -n "$defice" ]; then