about summary refs log tree commit diff stats
path: root/arc/.traces/index-indirect-multiple
Commit message (Collapse)AuthorAgeFilesLines
* 1276 - make C++ version the defaultKartik K. Agaram2015-05-051-0/+88
I've tried to update the Readme, but there are at least a couple of issues.
ref='/punk/doc/commit/core/conf/rc.d/net?id=bb078eb6dcd67616e4e57b8df7cf8bc0dbd8ffa9'>bb078eb ^
94e429f ^
bb078eb ^
94e429f ^

bb078eb ^

94e429f ^







fef9ed6 ^
94e429f ^



bb078eb ^
94e429f ^
bb078eb ^



fef9ed6 ^

fe8a27d ^

bb078eb ^
94e429f ^











1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54





                                             
           


                                                       

                  
       
              

                    

                                                   







                                                                                
                                                            



                                               
                                       
                    



                                                                     

                                                             

                                                      
 











                                                     
#!/bin/sh
#
# /etc/rc.d/net: start/stop network interface
#

# Connection type: "DHCP" or "static"
TYPE="DHCP"

# For "static" connections, specify your settings here:
# To see your available devices run "ip link".
DEV=enp11s0
ADDR=192.168.1.100
MASK=24
GW=192.168.1.1

# Optional settings:
#DHCPOPTS="-h $(/bin/hostname) -C resolv.conf $DEV"
DHCPOPTS="-t 10"

case $1 in
	start)
		if [ "${TYPE}" = "DHCP" ]; then
			/sbin/dhcpcd ${DHCPOPTS}
		else
			/sbin/ip addr add ${ADDR}/${MASK} dev ${DEV} broadcast +
			/sbin/ip link set ${DEV} up
			/sbin/ip route add default via ${GW}
		fi
		;;
	stop)
		if [ "${TYPE}" = "DHCP" ]; then
			/sbin/dhcpcd -x
		else
			#/sbin/ip route del default
			#/sbin/ip link set ${DEV} down
			#/sbin/ip addr del ${ADDR}/${MASK} dev ${DEV}

                        /sbin/ip route del default dev ${DEV}
                        /sbin/ip route flush dev ${DEV}
                        /sbin/ip link set ${DEV} down
                        /sbin/ip addr flush dev ${DEV}

		fi
		;;
	restart)
		$0 stop
		$0 start
		;;
	*)
		echo "Usage: $0 [start|stop|restart]"
		;;
esac

# End of file