1 2 3 4 5 6 7 8 9 10 11 12 13 | iface br0 inet dhcp bridge_ports eth0 wlan0 pre-up ifconfig eth0 0.0.0.0 up pre-up ifconfig wlan0 0.0.0.0 up pre-up iwconfig wlan0 mode master pre-up brctl addbr br0 pre-up brctl addif eth0 pre-up brctl addif wlan0 post-down ifconfig eth0 0.0.0.0 down post-down ifconfig wlan0 0.0.0.0 down post-down brctl delif br0 eth0 post-down brctl delif br0 wlan0 post-down brctl delbr br0 |
1 2 | #!/bin/sh ifup --force -v br0 |
1 | pre-up iwconfig wlan0 mode master key s:blahblahblah1 |
1 2 3 4 5 | #!/usr/bin/perl -w print <<EOH; Content-Type: text/plain Hello, world! EOH |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #!/bin/sh cat <<EOF Content-Type: text/html <HTML><HEAD><TITLE>WAP Stats</TITLE></HEAD> <BODY> <H2>Stats:</H2> <PRE> EOF ifconfig -a cat <<EOF </PRE> </BODY> </HTML> EOF |
1 2 3 4 5 | #!/bin/sh cat <<EOF Content-Type: text/plain EOF cat $1 |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |