- Timestamp:
- 10/12/11 22:40:40 (7 months ago)
- Location:
- branches/nightwing-wa/nightwing/usr/bin
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/nightwing-wa/nightwing/usr/bin/nw_conf
r586 r619 1 1 #!/bin/sh 2 2 ### 3 # Copyright (C) 2008 - 201 0: Martin A. Campff, Sebastián D. Criado, Gustavo Lindberg,3 # Copyright (C) 2008 - 2011: Martin A. Campff, Sebastián D. Criado, Gustavo Lindberg, 4 4 # Julio C. Puigpinos 5 5 # Contact list: lugro-mesh-dev@lugro-mesh.org.ar 6 # Version 0.7 WA6 # Version 0.7.8WA 7 7 # 8 8 # This program is free software: you can redistribute it and/or modify … … 163 163 if [[ "${#HTTPPASS}" -gt 7 && "${#HTTPPASS}" -lt 64 ]]; 164 164 then 165 echo "/:$HTTPUSER:$( httpd -m $HTTPPASS)" > /etc/httpd.conf165 echo "/:$HTTPUSER:$(uhttpd -m $HTTPPASS)" > /etc/httpd.conf 166 166 HTTPD_CHANGE=1 167 167 else … … 410 410 echo "Do you want to change the Web access admin? [y/n]: " 411 411 case_httpd_access 412 if [ $HTTPD_CHANGE == "1" ]; then kill -9 $(pidof httpd);/etc/init.d/httpdstart;fi412 if [ $HTTPD_CHANGE == "1" ]; then /etc/init.d/uhttpd restart;fi 413 413 menu_2 414 414 ;; -
branches/nightwing-wa/nightwing/usr/bin/nw_ts
r517 r619 1 1 #!/bin/sh /etc/rc.common 2 2 ### 3 # Copyright (C) 2008 - 201 0: Sebastian Criado, Julio C. Puigpinos,3 # Copyright (C) 2008 - 2011: Sebastian Criado, Julio C. Puigpinos, 4 4 # Bernardo Lamas, Emiliano Nuñez 5 5 # Contact list: lugro-mesh-dev@lugro-mesh.org.ar 6 # Version 0. 46 # Version 0.5 7 7 # 8 8 # Originally based on Robert W. Brewer script (rwb123 at gmail dot com) … … 92 92 $IPTABLES -t mangle -N $CHAIN 93 93 $IPTABLES -t mangle -I $CHAIN -p udp -j MARK --set-mark 20 94 $IPTABLES -t mangle -I $CHAIN -p icmp -j MARK --set-mark 2094 $IPTABLES -t mangle -I $CHAIN -p icmp -j MARK --set-mark 30 95 95 $IPTABLES -t mangle -I $CHAIN -p tcp -m multiport --sport 22 -j MARK --set-mark 20 96 96 $IPTABLES -t mangle -I $CHAIN -p tcp -m multiport --sport 80,443,20,21,25,110 -j MARK --set-mark 10