Sha256: 1733bdc35f6844b0fe248e92f5a3a943753747b1b2f27d1daf60cb50237adaaf

Contents?: true

Size: 271 Bytes

Versions: 2

Compression:

Stored size: 271 Bytes

Contents

#!/bin/sh -x

if [ "$USER" != "root" -o "$1" != "sudo" ]; then
  exec sudo -p "Password for $0:" $0 sudo $1
fi

[ "$1" = "sudo" ] && shift

/sbin/ifconfig $1 172.20.0.1
iptables -t nat -A POSTROUTING -s 172.20.0.1/24 -o eth0 -j MASQUERADE
sysctl -w net.ipv4.ip_forward=1

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gepetto-0.0.12 app_generators/gepetto/templates/config/qemu-ifup
gepetto-0.0.11 app_generators/gepetto/templates/config/qemu-ifup