» 您尚未登录:请 登录 | 注册 | 标签 | 帮助 | 小黑屋 |


发新话题
打印

[任天堂] 关于DD固件网络擦肩脚本的更新,楼主已经擦完了

echo -e "#!/bin/sh\nLIST=/tmp/mac.list\nROW=\$(head -n 1 \$LIST)\nTOTAL=\$(grep : -c \$LIST)\nMAC=\$(sed -n \$((\$ROW+1))p \$LIST)\nWLINT=\$(nvram get wl0_ifname)\nAPDCNF=/tmp/\${WLINT}_hostap.conf\nAPDPID=/var/run/\${WLINT}_hostapd.pid\nif [ -e \$APDCNF ]; then\nkill \$(cat \$APDPID)\nsed -ri s/bssid=.*/bssid=\$MAC/ \$APDCNF\nhostapd -B -P \$APDPID \$APDCNF\nelse\nifconfig \$WLINT down\nifconfig \$WLINT hw ether \$MAC\nifconfig \$WLINT up\nif [ \$ROW -ge \$TOTAL ]; then\nNEXT=1\nelse\nNEXT=\$((\$ROW+1))\nfi\nsed -i 1s/.*/\$NEXT/ \$LIST\nfi" >/tmp/autoMAC; chmod 555 /tmp/autoMAC;echo -e "1\n4E:53:50:4F:4F:04\n4E:53:50:4F:4F:14\n4E:53:50:4F:4F:24\n4E:53:50:4F:4F:34\n4E:53:50:4F:4F:44\n4E:53:50:4F:4F:54\n4E:53:50:4F:4F:64\n4E:53:50:4F:4F:74\n4E:53:50:4F:4F:84\n4E:53:50:4F:4F:94\n4E:53:50:4F:4F:05\n4E:53:50:4F:4F:15\n4E:53:50:4F:4F:25\n4E:53:50:4F:4F:35\n4E:53:50:4F:4F:45\n4E:53:50:4F:4F:55\n4E:53:50:4F:4F:65\n4E:53:50:4F:4F:75\n4E:53:50:4F:4F:85\n4E:53:50:4F:4F:95\n4E:53:50:4F:4F:06\n4E:53:50:4F:4F:16\n4E:53:50:4F:4F:26\n4E:53:50:4F:4F:36\n4E:53:50:4F:4F:19\n4E:53:50:4F:4F:29\n4E:53:50:4F:4F:39\n4E:53:50:4F:4F:49\n4E:53:50:4F:4F:59\n4E:53:50:4F:4F:69\n4E:53:50:4F:4F:79\n4E:53:50:4F:4F:89\n4E:53:50:4F:4F:99\n4E:53:50:4F:4F:0A\n4E:53:50:4F:4F:1A\n4E:53:50:4F:4F:2A\n4E:53:50:4F:4F:3A\n4E:53:50:4F:4F:4A\n4E:53:50:4F:4F:5A\n4E:53:50:4F:4F:6A\n4E:53:50:4F:4F:7A\n4E:53:50:4F:4F:8A\n4E:53:50:4F:4F:9A\n4E:53:50:4F:4F:40\n4E:53:50:4F:4F:41\n4E:53:50:4F:4F:42\n4E:53:50:4F:4F:43\n4E:53:50:4F:4F:44\n4E:53:50:4F:4F:45\n4E:53:50:4F:4F:46\n4E:53:50:4F:4F:47\n4E:53:50:4F:4F:48\n4E:53:50:4F:4F:49\n4E:53:50:4F:4F:4A\n4E:53:50:4F:4F:4B\n4E:53:50:4F:4F:4C\n4E:53:50:4F:4F:4D\n4E:53:50:4F:4F:4E\n4E:53:50:4F:4F:4F\n00:25:9C:52:1C:6A\n00:0D:67:15:2D:82\n00:0D:67:15:D7:21\n00:0D:67:15:D5:44\n00:0D:67:15:D2:59\n00:0D:67:15:D6:FD\n4E:53:50:4F:4F:00\n4E:53:50:4F:4F:10\n4E:53:50:4F:4F:20\n4E:53:50:4F:4F:30\n4E:53:50:4F:4F:40\n4E:53:50:4F:4F:50\n4E:53:50:4F:4F:60\n4E:53:50:4F:4F:70\n4E:53:50:4F:4F:80\n4E:53:50:4F:4F:90\n4E:53:50:4F:4F:01\n4E:53:50:4F:4F:11\n4E:53:50:4F:4F:21\n4E:53:50:4F:4F:31\n4E:53:50:4F:4F:41\n4E:53:50:4F:4F:51\n4E:53:50:4F:4F:61\n4E:53:50:4F:4F:71\n4E:53:50:4F:4F:81\n4E:53:50:4F:4F:91\n4E:53:50:4F:4F:02\n4E:53:50:4F:4F:12\n4E:53:50:4F:4F:22\n4E:53:50:4F:4F:32\n4E:53:50:4F:4F:42\n4E:53:50:4F:4F:52\n4E:53:50:4F:4F:62\n4E:53:50:4F:4F:72\n4E:53:50:4F:4F:82\n4E:53:50:4F:4F:92\n4E:53:50:4F:4F:03\n4E:53:50:4F:4F:13\n4E:53:50:4F:4F:23\n4E:53:50:4F:4F:33\n4E:53:50:4F:4F:43\n4E:53:50:4F:4F:53\n4E:53:50:4F:4F:63\n4E:53:50:4F:4F:73\n4E:53:50:4F:4F:83\n4E:53:50:4F:4F:93\n4E:53:50:4F:4F:46\n4E:53:50:4F:4F:56\n4E:53:50:4F:4F:66\n4E:53:50:4F:4F:76\n4E:53:50:4F:4F:86\n4E:53:50:4F:4F:96\n4E:53:50:4F:4F:07\n4E:53:50:4F:4F:17\n4E:53:50:4F:4F:27\n4E:53:50:4F:4F:37\n4E:53:50:4F:4F:47\n4E:53:50:4F:4F:57\n4E:53:50:4F:4F:67\n4E:53:50:4F:4F:77\n4E:53:50:4F:4F:87\n4E:53:50:4F:4F:97\n4E:53:50:4F:4F:08\n4E:53:50:4F:4F:18\n4E:53:50:4F:4F:28\n4E:53:50:4F:4F:38\n4E:53:50:4F:4F:48\n4E:53:50:4F:4F:58\n4E:53:50:4F:4F:68\n4E:53:50:4F:4F:78\n4E:53:50:4F:4F:88\n4E:53:50:4F:4F:98\n4E:53:50:4F:4F:09" > /tmp/mac.list

简单粗暴,从不失效


本帖最近评分记录

TOP

引用:
原帖由 昊昊荡荡 于 2014-2-26 17:07 发表


好厉害,这样就不用那个定时脚本了?

如果用,是不是这样写:*/15 * * * * root /tmp/autoMAC
要的,就是你这个写法



TOP

发新话题
     
官方公众号及微博