source: dr-valentin-server-common/trunk/fuentes/install-files/usr/share/dr-valentin/server/actions/070-network @ 873

Last change on this file since 873 was 873, checked in by mabarracus, 5 years ago

Copy trusty code

  • Property svn:executable set to *
File size: 648 bytes
Line 
1#!/bin/sh
2
3mkdir $1/network/
4
5cp /etc/network/interfaces $1/network/
6cp /etc/init/network-manager.override $1/network
7cp /etc/resolv.conf $1/network/
8cp /etc/hosts   $1/network/
9route -n >> $1/network/route
10
11ifconfig >> $1/network/ifconfig
12
13iptables-save >> $1/network/iptables
14
15if [ -e "/etc/sysctl.d/10-lliurex-forwarding.conf" ]; then
16        cp /etc/sysctl.d/10-lliurex-forwarding.conf $1/network/etc.sysctl.d.10-lliurex-forwarding.conf
17else
18        touch $1/network/routing-not-persistent
19fi
20echo "#0 is Disabled ; 1 is Enabled" > $1/network/status_routing
21cat /proc/sys/net/ipv4/ip_forward >> $1/network/status_routing
22cp /etc/dhcp/dhclient.conf      $1/network/
Note: See TracBrowser for help on using the repository browser.