1
0
This repository has been archived on 2025-01-10. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Anderson Luiz Alves 0464e230c1 stock 103961
2017-07-30 16:48:04 -03:00

22 lines
313 B
Bash
Executable File

#!/bin/sh
RESOLV_CONF="/etc/resolv.conf"
NETMASK="netmask $subnet"
ifconfig $interface $ip $NETMASK
#if [ -n "$router" ]
#then
# for i in $router
# do
# route add default gw $i dev $interface
# done
#fi
#echo -n > $RESOLV_CONF
for i in $dns
do
#echo adding dns $i
# echo nameserver $i >> $RESOLV_CONF
done