1#!/bin/sh 2 3# In the following directories, files of WL300g/WL500g/WL600/WL600g will be different 4# /init/ 5# /web 6# /web/script 7 8echo Make $1 Web Page 9 10if [ -n "$1" ]; then 11 12 MODEL=$1 13 14 if [ -n "$2" ]; then 15 if [ "$2" = "EN" ] || [ "$2" = "TW" ]; then 16 if [ "$MODEL" = "WL500bv2" ]; then 17 MODEL_STR="WL500b" 18 else 19 MODEL_STR="$2" 20 fi 21 MODELID="$MODEL" 22 rm -rf ./web 23 cp -rf ./web_asus_en ./web 24 if [ "$MODEL" = "WL520gu" ]; then 25 cp -rf web_asus_en/Title.asp.TWCN web_asus_en/Title.asp 26 else 27 cp -rf web_asus_en/Title.asp.500gp web_asus_en/Title.asp 28 fi 29 #cp -rf web_asus_en/Advanced_StorageRight_Content.asp.TWCN web_asus_en/Advanced_StorageRight_Content.asp 30 elif [ "$2" = "KR" ]; then 31 if [ "$MODEL" = "WL500bv2" ]; then 32 MODEL_STR="WL500b" 33 else 34 MODEL_STR="$MODEL" 35 fi 36 MODELID="$MODEL" 37 rm -rf ./web 38 cp -rf ./web_asus_kr ./web 39 cp -rf web_asus_en/Title.asp.KR web_asus_en/Title.asp 40 cp -rf web_asus_en/Advanced_StorageRight_Content.asp.KR web_asus_en/Advanced_StorageRight_Content.asp 41 elif [ "$2" = "JP" ]; then 42 if [ "$MODEL" = "WL500bv2" ]; then 43 MODEL_STR="WL500b" 44 else 45 MODEL_STR="$MODEL" 46 fi 47 MODELID="$MODEL" 48 rm -rf ./web 49 cp -rf ./web_asus_jp ./web 50 elif [ "$2" = "TW" ]; then 51 if [ "$MODEL" = "WL500bv2" ]; then 52 MODEL_STR="WL500b" 53 else 54 MODEL_STR="$MODEL" 55 fi 56 MODELID="$MODEL" 57 rm -rf ./web 58 cp -rf ./web_asus_tw ./web 59 cp -rf web_asus_en/Advanced_StorageRight_Content.asp.TWCN web_asus_en/Advanced_StorageRight_Content.asp 60 elif [ "$2" = "CN" ]; then 61 if [ "$MODEL" = "WL500bv2" ]; then 62 MODEL_STR="WL500b" 63 elif [ "$MODEL" = "WL520g" ]; then 64 MODEL_STR="WL500g-X" 65 elif [ "$MODEL" = "WL550gE" ]; then 66 MODEL_STR="WL500gE" 67 else 68 MODEL_STR="$MODEL" 69 fi 70 MODELID="$MODEL" 71 rm -rf ./web 72 cp -rf ./web_asus_cn ./web 73 elif [ "$2" = "ML" ]; then 74 if [ "$MODEL" = "WL500bv2" ]; then 75 MODEL_STR="WL500b" 76 elif [ "$MODEL" = "WL520g" ]; then 77 MODEL_STR="WL500g-X" 78 elif [ "$MODEL" = "WL550gE" ]; then 79 MODEL_STR="WL500gE" 80 else 81 MODEL_STR="$MODEL" 82 fi 83 MODELID="$MODEL" 84 rm -rf ./web 85 cp -rf ./web_asus_ml ./web 86 elif [ "$2" = "GE" ]; then 87 if [ "$MODEL" = "WL500gx" ]; then 88 MODEL_STR="ASUS Wireless Router" 89 else 90 MODEL_STR="$MODEL" 91 fi 92 MODELID="$MODEL" 93 rm -rf ./web 94 cp -rf ./web_asus_ge ./web 95 else 96 MODEL_STR="$2" 97 MODELID="$3" 98 rm -rf ./web 99 cp -rf ./web_$MODELID ./web 100 cp -rf web_asus_en/Title.asp.TWCN web_asus_en/Title.asp 101 cp -rf web_asus_en/Advanced_StorageRight_Content.asp.TWCN web_asus_en/Advanced_StorageRight_Content.asp 102 103 fi 104 else 105 MODEL_STR="$MODEL" 106 MODELID="$MODEL" 107 rm -rf ./web 108 cp -rf ./web_asus_en ./web 109 fi 110 111 if [ "$MODEL" = "WL500gp" ] || [ "$MODEL" = "WL520gu" ] || [ "$MODEL" = "WL500gpv2" ]; then 112 MODEL_STR="ASUS Wireless Router" 113 fi 114 if [ "$MODELID" = "WL500gx" ]; then 115 if [ "$2" = "GE" ]; then 116 MODEL_STR="ASUS Wireless Router" 117 else 118 MODEL_STR="WL500g.Deluxe" 119 fi 120 fi 121 echo $MODEL_STR 122 123 ### 1. copy all files to tempdir ### 124 cp -rf ./web/. ./web_$MODEL 125 rm -rf ./web_$MODEL/*.asp 126 cd ./web 127 128 ### 2. Replace ProductID in *.asp and *.js ### 129 130 LIST=`ls *.asp` 131 PATTERN="s/ZVMODELVZ/$MODEL_STR/g" 132 133 echo $PATTERN 134 135 # Embed Module ID to *.asp 136 for i in $LIST; do 137 # echo $i $1 138 cat -s $i | sed "$PATTERN" | sed "s/\t//g" | sed "s/^ *//g" | sed "s/ *$//g" > ../web_$MODEL/$i 139 ../strip ../web_$MODEL/$i > tmpFile 140 cp -rf tmpFile ../web_$MODEL/$i 141 done 142 143 LIST=`ls *.js` 144 145 # Embed Module ID to *.js 146 for i in $LIST; do 147 cat -s $i | sed "$PATTERN" | sed "s/\t//g" | sed "s/^ *//g" | sed "s/ *$//g" > ../web_$MODEL/$i 148 ../strip ../web_$MODEL/$i > tmpFile 149 cp -rf tmpFile ../web_$MODEL/$i 150 done 151 152 153 ### 3. Replace ProductID in *.xml ### 154 155 PATTERN="s/WL600/$MODEL/g" 156 cat igdevicedesc.xml | sed "$PATTERN" > ../web_$MODEL/igdevicedesc.xml 157 158 ### 4. Copy different files for different Model ### 159 160 if [ "$MODEL" = "WL300g" ] || [ "$MODEL" = "WL300g2" ]; then 161 ### 4.1 default value ### 162 163 if [ "$MODEL" = "WL300g" ]; then 164 cat ../web_$MODEL/flash.default \ 165 | sed 's/IP_Routed/IP_Bridged/g' \ 166 | sed 's/NATEnabled=\"1\"/NATEnabled=\"0\"/g' \ 167 | sed 's/ApplyDevices=\"Both\"/ApplyDevices=\"802.11g only\"/g' \ 168 | sed 's/DmzDevices=\"Both\"/DmzDevices=\"802.11g only\"/g' > ../web_$MODEL/flash.default_300g 169 else 170 cat ../web_$MODEL/flash.default \ 171 | sed 's/ApplyDevices=\"Both\"/ApplyDevices=\"802.11g only\"/g' \ 172 | sed 's/DmzDevices=\"Both\"/DmzDevices=\"802.11g only\"/g' > ../web_$MODEL/flash.default_300g 173 fi 174 cp -f ../web_$MODEL/flash.default_300g ../target/ramfs/etc/linuxigd/flash.default 175 176 ### 4.2 web page ### 177 cp -f ../web_$MODEL/Advanced_Wireless11g_Content.asp ../web_$MODEL/Advanced_Wireless_Content.asp 178 if [ "$MODEL" = "WL300g" ]; then 179 cp -f ../web_$MODEL/Advanced_WAdvanced_Content_300g.asp ../web_$MODEL/Advanced_WAdvanced_Content.asp 180 fi 181 cp -f ../web_$MODEL/Advanced_ACL11g_Content.asp ../web_$MODEL/Advanced_ACL_Content.asp 182 cp -f ../web_$MODEL/Advanced_DMZIP11g_Content.asp ../web_$MODEL/Advanced_DMZIP_Content.asp 183 184 cp -f ../web_$MODEL/Advanced_OperationMode_Content_300g.asp ../web_$MODEL/Advanced_OperationMode_Content.asp 185 186 cp -f ../web_$MODEL/Advanced_DDNS_Content_300g.asp ../web_$MODEL/Advanced_DDNS_Content.asp 187 cp -f ../web_$MODEL/Main_WStatus11g_Content.asp ../web_$MODEL/Main_WStatus_Content.asp 188 cp -f ../web_$MODEL/Main_Index_AccessPoint11g_300g.asp ../web_$MODEL/Main_Index_AccessPoint.asp 189 cp -f ../web_$MODEL/Main_Index_HomeGateway11g_300g.asp ../web_$MODEL/Main_Index_HomeGateway.asp 190 cp -f ../web_$MODEL/Main_Index_Router11g_300g.asp ../web_$MODEL/Main_Index_Router.asp 191 cp -f ../web_$MODEL/Main_AStatus11g_Content.asp ../web_$MODEL/Main_AStatus_Content.asp 192 cp -f ../web_$MODEL/Main_GStatus11g_Content.asp ../web_$MODEL/Main_GStatus_Content.asp 193 cp -f ../web_$MODEL/Main_RStatus11g_Content.asp ../web_$MODEL/Main_RStatus_Content.asp 194 cp -f ../web_$MODEL/Advanced_Exposed_Content_SP.asp ../web_$MODEL/Advanced_Exposed_Content.asp 195 196 ### 4.3 web graph ### 197 cp -f ../web_$MODEL/graph/iBox_title_all_300g.jpg ../web_$MODEL/graph/iBox_title_all.jpg 198 cp -f ../web_$MODEL/graph/internet_all_300.gif ../web_$MODEL/graph/internet_all.gif 199 cp -f ../web_$MODEL/graph/internet_none_300.gif ../web_$MODEL/graph/internet_none.gif 200 cp -f ../web_$MODEL/graph/internet_some_300.gif ../web_$MODEL/graph/internet_some.gif 201 cp -f ../web_$MODEL/graph/wds_ap_300.gif ../web_$MODEL/graph/wds_ap.gif 202 cp -f ../web_$MODEL/graph/wds_mixed_connect_300.gif ../web_$MODEL/graph/wds_mixed_connect.gif 203 cp -f ../web_$MODEL/graph/wds_mixed_anony_300.gif ../web_$MODEL/graph/wds_mixed_anony.gif 204 cp -f ../web_$MODEL/graph/wds_mixed_both_300.gif ../web_$MODEL/graph/wds_mixed_both.gif 205 cp -f ../web_$MODEL/graph/wds_wds_connect_300.gif ../web_$MODEL/graph/wds_wds_connect.gif 206 cp -f ../web_$MODEL/graph/wds_wds_anony_300.gif ../web_$MODEL/graph/wds_wds_anony.gif 207 cp -f ../web_$MODEL/graph/wds_wds_both_300.gif ../web_$MODEL/graph/wds_wds_both.gif 208 cp -f ../web_$MODEL/graph/wf_g_300.gif ../web_$MODEL/graph/wf_g.gif 209 cp -f ../web_$MODEL/graph/wf_none_300.gif ../web_$MODEL/graph/wf_none.gif 210 211 elif [ "$MODEL" = "WL331g" ] || [ "$MODEL" = "WL331gl" ]; then 212 ### 4.1 default value ### 213 ### 4.2 web page ### 214 cp -f ../web_$MODEL/Advanced_Wireless11g_Content.asp ../web_$MODEL/Advanced_Wireless_Content.asp 215 cp -f ../web_$MODEL/Advanced_WMode_Content_500g_lite.asp ../web_$MODEL/Advanced_WMode_Content.asp 216 cp -f ../web_$MODEL/Advanced_WAdvanced_Content_500g_lite.asp ../web_$MODEL/Advanced_WAdvanced_Content.asp 217 cp -f ../web_$MODEL/Advanced_ACL11g_Content.asp ../web_$MODEL/Advanced_ACL_Content.asp 218 cp -f ../web_$MODEL/Advanced_DMZIP11g_Content.asp ../web_$MODEL/Advanced_DMZIP_Content.asp 219 cp -f ../web_$MODEL/Advanced_OperationMode_Content_300g.asp ../web_$MODEL/Advanced_OperationMode_Content.asp 220 #cp -f ../web_$MODEL/Advanced_DDNS_Content_300g.asp ../web_$MODEL/Advanced_DDNS_Content.asp 221 cp -f ../web_$MODEL/Main_WStatus11g_Content.asp ../web_$MODEL/Main_WStatus_Content.asp 222 cp -f ../web_$MODEL/Main_Index_AccessPoint11g_300g.asp ../web_$MODEL/Main_Index_AccessPoint.asp 223 cp -f ../web_$MODEL/Main_Index_HomeGateway11g_300g.asp ../web_$MODEL/Main_Index_HomeGateway.asp 224 cp -f ../web_$MODEL/Main_Index_Router11g_300g.asp ../web_$MODEL/Main_Index_Router.asp 225 cp -f ../web_$MODEL/Main_AStatus11g_Content.asp ../web_$MODEL/Main_AStatus_Content.asp 226 cp -f ../web_$MODEL/Main_GStatus11g_Content.asp ../web_$MODEL/Main_GStatus_Content.asp 227 cp -f ../web_$MODEL/Main_RStatus11g_Content.asp ../web_$MODEL/Main_RStatus_Content.asp 228 cp -f ../web_$MODEL/Advanced_Exposed_Content_SP.asp ../web_$MODEL/Advanced_Exposed_Content.asp 229 cp -f ../web_$MODEL/Advanced_Firewall_Content_lite.asp ../web_$MODEL/Advanced_Firewall_Content.asp 230 cp -f ../web_$MODEL/Advanced_BasicFirewall_Content_lite.asp ../web_$MODEL/Advanced_BasicFirewall_Content.asp 231 ### 4.3 web graph ### 232 cp -f ../web_$MODEL/graph/iBox_title_all_331g.jpg ../web_$MODEL/graph/iBox_title_all.jpg 233 cp -f ../web_$MODEL/graph/internet_all_300.gif ../web_$MODEL/graph/internet_all.gif 234 cp -f ../web_$MODEL/graph/internet_none_300.gif ../web_$MODEL/graph/internet_none.gif 235 cp -f ../web_$MODEL/graph/internet_some_300.gif ../web_$MODEL/graph/internet_some.gif 236 cp -f ../web_$MODEL/graph/wds_ap_300.gif ../web_$MODEL/graph/wds_ap.gif 237 cp -f ../web_$MODEL/graph/wds_mixed_connect_300.gif ../web_$MODEL/graph/wds_mixed_connect.gif 238 cp -f ../web_$MODEL/graph/wds_mixed_anony_300.gif ../web_$MODEL/graph/wds_mixed_anony.gif 239 cp -f ../web_$MODEL/graph/wds_mixed_both_300.gif ../web_$MODEL/graph/wds_mixed_both.gif 240 cp -f ../web_$MODEL/graph/wds_wds_connect_300.gif ../web_$MODEL/graph/wds_wds_connect.gif 241 cp -f ../web_$MODEL/graph/wds_wds_anony_300.gif ../web_$MODEL/graph/wds_wds_anony.gif 242 cp -f ../web_$MODEL/graph/wds_wds_both_300.gif ../web_$MODEL/graph/wds_wds_both.gif 243 cp -f ../web_$MODEL/graph/wf_g_300.gif ../web_$MODEL/graph/wf_g.gif 244 cp -f ../web_$MODEL/graph/wf_none_300.gif ../web_$MODEL/graph/wf_none.gif 245 elif [ "$MODEL" = "WL500bv2Orig" ]; then 246 ### 4.1 default value ### 247 cat ../web_$MODEL/flash.default \ 248 | sed 's/ApplyDevices=\"Both\"/ApplyDevices=\"802.11g only\"/g' \ 249 | sed 's/DmzDevices=\"Both\"/DmzDevices=\"802.11g only\"/g' \ 250 | sed 's/x_Mode11g=\"0\"/x_Mode11g=\"3\"/g' > ../web_$MODEL/flash.default_500b 251 cp -f ../web_$MODEL/flash.default_500b ../target/ramfs/etc/linuxigd/flash.default 252 253 ### 4.2 web page ### 254 cp -f ../web_$MODEL/Advanced_Wireless11b_Content.asp ../web_$MODEL/Advanced_Wireless_Content.asp 255 cp -f ../web_$MODEL/Advanced_ACL11g_Content.asp ../web_$MODEL/Advanced_ACL_Content.asp 256 cp -f ../web_$MODEL/Advanced_DMZIP11g_Content.asp ../web_$MODEL/Advanced_DMZIP_Content.asp 257 cp -f ../web_$MODEL/Main_WStatus11b_Content.asp ../web_$MODEL/Main_WStatus_Content.asp 258 cp -f ../web_$MODEL/Main_Index_AccessPoint11b.asp ../web_$MODEL/Main_Index_AccessPoint.asp 259 cp -f ../web_$MODEL/Main_Index_HomeGateway11b.asp ../web_$MODEL/Main_Index_HomeGateway.asp 260 cp -f ../web_$MODEL/Main_Index_Router11b.asp ../web_$MODEL/Main_Index_Router.asp 261 cp -f ../web_$MODEL/Advanced_Exposed_Content_SP.asp ../web_$MODEL/Advanced_Exposed_Content.asp 262 263 ### 4.3 web graph ### 264 cp -f ../web_$MODEL/graph/iBox_title_all_500b.jpg ./../web_$MODEL/graph/iBox_title_all.jpg 265 cp -f ../web_$MODEL/graph/internet_all_500.gif ./../web_$MODEL/graph/internet_all.gif 266 cp -f ../web_$MODEL/graph/internet_none_500.gif ./../web_$MODEL/graph/internet_none.gif 267 cp -f ../web_$MODEL/graph/internet_some_500.gif ./../web_$MODEL/graph/internet_some.gif 268 cp -f ../web_$MODEL/graph/wds_ap_500.gif ./../web_$MODEL/graph/wds_ap.gif 269 cp -f ../web_$MODEL/graph/wds_mixed_connect_500.gif ./../web_$MODEL/graph/wds_mixed_connect.gif 270 cp -f ../web_$MODEL/graph/wds_mixed_anony_500.gif ./../web_$MODEL/graph/wds_mixed_anony.gif 271 cp -f ../web_$MODEL/graph/wds_mixed_both_500.gif ./../web_$MODEL/graph/wds_mixed_both.gif 272 cp -f ../web_$MODEL/graph/wds_wds_connect_500.gif ./../web_$MODEL/graph/wds_wds_connect.gif 273 cp -f ../web_$MODEL/graph/wds_wds_anony_500.gif ./../web_$MODEL/graph/wds_wds_anony.gif 274 cp -f ../web_$MODEL/graph/wds_wds_both_500.gif ./../web_$MODEL/graph/wds_wds_both.gif 275 cp -f ../web_$MODEL/graph/wf_g_300.gif ../web_$MODEL/graph/wf_g.gif 276 cp -f ../web_$MODEL/graph/wf_none_300.gif ../web_$MODEL/graph/wf_none.gif 277 ### 4.4 Script and module ### 278 cp -f ../target/init/functions_500g ../target/init/functions 279 cp -f ../target/init/firewall.refresh_600g ../target/init/firewall.refresh 280 cp -f ../target/init/rc.prnsvr_600g ../target/init/rc.prnsvr 281 cp -f ../target/web/script/route.sh_600g ../target/web/script/route.sh 282 cp -f ../target/web/script/portmapping.sh_600g ../target/web/script/portmapping.sh 283 284 cp -f ../target/web/script/wlan11b.sh_600g ../target/web/script/wlan11b.sh 285 cp -f ../target/lib/modules/2.4.5/splink_led.o_300g ../target/lib/modules/2.4.5/splink_led.o 286 cp -f ../target/lib/modules/2.4.5/parport/lp.o_500g ../target/lib/modules/2.4.5/parport/lp.o 287 cp -f ../target/usr/sbin/upnp_500b ../target/usr/sbin/upnp 288 cp -f ../target/sbin/lpd_600g ../target/sbin/lpd 289 cp -f ../target/sbin/infosvr_600g ../target/sbin/infosvr 290 if [ "$MODEL" = "WL500bv2" ]; then 291 cp -f ../web_$MODEL/index_501b.asp ../web_$MODEL/index.asp 292 cp -f ../web_$MODEL/Advanced_Wireless11b_Content_501b.asp ../web_$MODEL/Advanced_Wireless_Content.asp 293 cp -f ../web_$MODEL/Advanced_WMode_Content_501b.asp ../web_$MODEL/Advanced_WMode_Content.asp 294 cp -f ../web_$MODEL/Advanced_ACL11g_Content_501b.asp ../web_$MODEL/Advanced_ACL_Content.asp 295 cp -f ../web_$MODEL/Advanced_WAdvanced_Content_501b.asp ../web_$MODEL/Advanced_WAdvanced_Content.asp 296 #cp -f ../web_$MODEL/Advanced_OperationMode_Content_501b.asp ../web_$MODEL/Advanced_OperationMode_Content.asp 297 298 #rm -rf ../target/lib/modules/2.4.20/kernel/drivers/net/wl/wl.o 299 300 rm -rf ../target/usr/sbin/ripd 301 rm -rf ../target/usr/sbin/zebra 302 cp -f ../target/init/functions_501b ../target/init/functions 303 cp -f ../target/init/bridge_501b ../target/init/bridge 304 cp -f ../target/init/httpserver_501b ../target/init/httpserver 305 cp -f ../target/web/script/wlan11b.sh_501b ../target/web/script/wlan11b.sh 306 fi 307 elif [ "$MODEL" = "WL500g" ] || [ "$MODEL" = "WL500gv2" ] || [ "$MODEL" = "WL550gE" ] || [ "$MODEL" = "WL500gx" ] || [ "$MODEL" = "WL500b" ] || [ "$MODEL" = "WL500bv2" ] || [ "$MODEL" = "WL520g" ] || [ "$MODEL" = "WL500bl" ] || [ "$MODEL" = "WL331gl" ] || [ "$MODEL" = "WL500gpv2" ] || [ "$MODEL" = "WL520gu" ]; then 308 ### 4.1 default value ### 309 cat ../web_$MODEL/flash.default \ 310 | sed 's/ApplyDevices=\"Both\"/ApplyDevices=\"802.11g only\"/g' \ 311 | sed 's/DmzDevices=\"Both\"/DmzDevices=\"802.11g only\"/g' > ../web_$MODEL/flash.default_500g 312 cp -f ../web_$MODEL/flash.default_500g ../target/ramfs/etc/linuxigd/flash.default 313 314 ### 4.2 web page ### 315 cp -f ../web_$MODEL/Advanced_Wireless11g_Content.asp ../web_$MODEL/Advanced_Wireless_Content.asp 316 cp -f ../web_$MODEL/Advanced_ACL11g_Content.asp ../web_$MODEL/Advanced_ACL_Content.asp 317 cp -f ../web_$MODEL/Advanced_DMZIP11g_Content.asp ../web_$MODEL/Advanced_DMZIP_Content.asp 318 cp -f ../web_$MODEL/Main_WStatus11g_Content.asp ../web_$MODEL/Main_WStatus_Content.asp 319 cp -f ../web_$MODEL/Main_Index_AccessPoint11g.asp ../web_$MODEL/Main_Index_AccessPoint.asp 320 cp -f ../web_$MODEL/Main_Index_HomeGateway11g.asp ../web_$MODEL/Main_Index_HomeGateway.asp 321 cp -f ../web_$MODEL/Main_Index_Router11g.asp ../web_$MODEL/Main_Index_Router.asp 322 ### 4.3 web graph ### 323 if [ "$MODEL" = "WL500gx" ] || [ "$MODEL" = "WL500gpv2" ] || [ "$MODEL" = "WL520gu" ]; then 324 if [ "$MODEL" = "WL500gpv2" ] || [ "$2" = "GE" ] || [ "$MODEL" = "WL520gu" ]; then 325 cp -f ../web_$MODEL/graph/iBox_title_all_520gc.jpg ./../web_$MODEL/graph/iBox_title_all.jpg 326 else 327 cp -f ../web_$MODEL/graph/iBox_title_all_500gp.jpg ./../web_$MODEL/graph/iBox_title_all.jpg 328 fi 329 if [ "$MODEL" = "WL500gpv2" ] || [ "$MODEL" = "WL520gu" ]; then 330 if [ "$MODEL" = "WL500gpv2" ] ; then 331 cp -f ../web_$MODEL/Advanced_QOS_Content.asp.500gp ../web_$MODEL/Advanced_QOS_Content.asp 332 cp -f ../web_$MODEL/Advanced_QOSUserSpec_Content.asp.500gp ../web_$MODEL/Advanced_QOSUserSpec_Content.asp 333 cp -f ../web_$MODEL/Advanced_DDNS_Content.asp.500gp ../web_$MODEL/Advanced_DDNS_Content.asp 334 else 335 cp -f ../web_$MODEL/Advanced_QOS_Content.asp.520gu ../web_$MODEL/Advanced_QOS_Content.asp 336 cp -f ../web_$MODEL/Advanced_QOSUserSpec_Content.asp.520gu ../web_$MODEL/Advanced_QOSUserSpec_Content.asp 337 cp -f ../web_$MODEL/Advanced_DDNS_Content.asp.520gu ../web_$MODEL/Advanced_DDNS_Content.asp 338 fi 339 fi 340 cp -f ../web_$MODEL/Advanced_Exposed_Content_SP.asp ../web_$MODEL/Advanced_Exposed_Content.asp 341 elif [ "$MODEL" = "WL500b" ]; then 342 cp -f ../web_$MODEL/graph/iBox_title_all_500b.jpg ./../web_$MODEL/graph/iBox_title_all.jpg 343 344 cp -f ../web_$MODEL/Main_Index_AccessPoint11b.asp ../web_$MODEL/Main_Index_AccessPoint.asp 345 cp -f ../web_$MODEL/Main_Index_HomeGateway11b.asp ../web_$MODEL/Main_Index_HomeGateway.asp 346 cp -f ../web_$MODEL/Main_Index_Router11b.asp ../web_$MODEL/Main_Index_Router.asp 347 cp -f ../web_$MODEL/Advanced_WAdvanced_Content_500g.asp ../web_$MODEL/Advanced_WAdvanced_Content.asp 348 cp -f ../web_$MODEL/Advanced_Exposed_Content_SP.asp ../web_$MODEL/Advanced_Exposed_Content.asp 349 elif [ "$MODEL" = "WL500bv2" ]; then 350 cp -f ../web_$MODEL/graph/iBox_title_all_500b.jpg ./../web_$MODEL/graph/iBox_title_all.jpg 351 352 cp -f ../web_$MODEL/Main_Index_AccessPoint11b.asp ../web_$MODEL/Main_Index_AccessPoint.asp 353 cp -f ../web_$MODEL/Main_Index_HomeGateway11b.asp ../web_$MODEL/Main_Index_HomeGateway.asp 354 cp -f ../web_$MODEL/Main_Index_Router11b.asp ../web_$MODEL/Main_Index_Router.asp 355 cp -f ../web_$MODEL/Advanced_WMode_Content_501b.asp ../web_$MODEL/Advanced_WMode_Content.asp 356 cp -f ../web_$MODEL/Advanced_ACL11g_Content_501b.asp ../web_$MODEL/Advanced_ACL_Content.asp 357 cp -f ../web_$MODEL/Advanced_WAdvanced_Content_501b.asp ../web_$MODEL/Advanced_WAdvanced_Content.asp 358 cp -f ../web_$MODEL/Main_WStatus11b_Content_501b.asp ../web_$MODEL/Main_WStatus_Content.asp 359 cp -f ../web_$MODEL/Advanced_Exposed_Content_SP.asp ../web_$MODEL/Advanced_Exposed_Content.asp 360 elif [ "$MODEL" = "WL520g" ] || [ "$MODEL" = "WL500bl" ] || [ "$MODEL" = "WL331gl" ] || [ "$MODEL" = "WL550gE" ]; then 361 if [ "$MODEL" = "WL550gE" ]; then 362 cp -f ../web_$MODEL/graph/iBox_title_all_550g.jpg ./../web_$MODEL/graph/iBox_title_all.jpg 363 else 364 cp -f ../web_$MODEL/graph/iBox_title_all_520g.jpg ./../web_$MODEL/graph/iBox_title_all.jpg 365 fi 366 367 cp -f ../web_$MODEL/Main_Index_AccessPoint11g_520g.asp ../web_$MODEL/Main_Index_AccessPoint.asp 368 cp -f ../web_$MODEL/Main_Index_HomeGateway11g_520g.asp ../web_$MODEL/Main_Index_HomeGateway.asp 369 cp -f ../web_$MODEL/Main_Index_Router11g_520g.asp ../web_$MODEL/Main_Index_Router.asp 370 cp -f ../web_$MODEL/Advanced_WMode_Content_500g_lite.asp ../web_$MODEL/Advanced_WMode_Content.asp 371 cp -f ../web_$MODEL/Advanced_ACL11g_Content_501b.asp ../web_$MODEL/Advanced_ACL_Content.asp 372 373 if [ "$MODEL" = "WL550gE" ]; then 374 cp -f ../web_$MODEL/Advanced_WAdvanced_Content_550g.asp ../web_$MODEL/Advanced_WAdvanced_Content.asp 375 cp -f ../web_$MODEL/Advanced_WMMADV_Content_550g.asp ../web_$MODEL/Advanced_WMMADV_Content.asp 376 cp -f ../web_$MODEL/general.js ../web_$MODEL/general.js 377 cp -f ../web_$MODEL/Advanced_LANWAN_Content.asp ../web_$MODEL/Advanced_LANWAN_Content.asp 378 cp -f ../web_$MODEL/Advanced_Exposed_Content_SP.asp ../web_$MODEL/Advanced_Exposed_Content.asp 379 else 380 cp -f ../web_$MODEL/Advanced_WAdvanced_Content_500g_lite.asp ../web_$MODEL/Advanced_WAdvanced_Content.asp 381 cp -f ../web_$MODEL/general_520.js ../web_$MODEL/general.js 382 cp -f ../web_$MODEL/Advanced_LANWAN_Content_lite.asp ../web_$MODEL/Advanced_LANWAN_Content.asp 383 cp -f ../web_$MODEL/Advanced_Exposed_Content.asp ../web_$MODEL/Advanced_Exposed_Content.asp 384 fi 385 cp -f ../web_$MODEL/Main_WStatus11g_Content.asp ../web_$MODEL/Main_WStatus_Content.asp 386 cp -f ../web_$MODEL/Advanced_BasicFirewall_Content_520g.asp ../web_$MODEL/Advanced_BasicFirewall_Content.asp 387 cp -f ../web_$MODEL/Advanced_Firewall_Content_520g.asp ../web_$MODEL/Advanced_Firewall_Content.asp 388 cp -f ../web_$MODEL/Advanced_VirtualServer_Content_520g.asp ../web_$MODEL/Advanced_VirtualServer_Content.asp 389 cp -f ../web_$MODEL/overlib_520.js ../web_$MODEL/overlib.js 390 cp -f ../web_$MODEL/quick_520.js ../web_$MODEL/quick.js 391 cp -f ../web_$MODEL/Main_GStatus11g_Content_520g.asp ../web_$MODEL/Main_GStatus_Content.asp 392 else 393 cp -f ../web_$MODEL/graph/iBox_title_all_500g.jpg ./../web_$MODEL/graph/iBox_title_all.jpg 394 cp -f ../web_$MODEL/Main_Index_AccessPoint11g_500g.asp ../web_$MODEL/Main_Index_AccessPoint.asp 395 cp -f ../web_$MODEL/Main_Index_HomeGateway11g_500g.asp ../web_$MODEL/Main_Index_HomeGateway.asp 396 cp -f ../web_$MODEL/Main_Index_Router11g_500g.asp ../web_$MODEL/Main_Index_Router.asp 397 cp -f ../web_$MODEL/Advanced_WAdvanced_Content_500g.asp ../web_$MODEL/Advanced_WAdvanced_Content.asp 398 cp -f ../web_$MODEL/Advanced_Exposed_Content_SP.asp ../web_$MODEL/Advanced_Exposed_Content.asp 399 fi 400 cp -f ../web_$MODEL/graph/internet_all_500.gif ./../web_$MODEL/graph/internet_all.gif 401 cp -f ../web_$MODEL/graph/internet_none_500.gif ./../web_$MODEL/graph/internet_none.gif 402 cp -f ../web_$MODEL/graph/internet_some_500.gif ./../web_$MODEL/graph/internet_some.gif 403# cp -f ../web_$MODEL/graph/wds_ap_500.gif ./../web_$MODEL/graph/wds_ap.gif 404# cp -f ../web_$MODEL/graph/wds_mixed_connect_500.gif ./../web_$MODEL/graph/wds_mixed_connect.gif 405# cp -f ../web_$MODEL/graph/wds_mixed_anony_500.gif ./../web_$MODEL/graph/wds_mixed_anony.gif 406# cp -f ../web_$MODEL/graph/wds_mixed_both_500.gif ./../web_$MODEL/graph/wds_mixed_both.gif 407# cp -f ../web_$MODEL/graph/wds_wds_connect_500.gif ./../web_$MODEL/graph/wds_wds_connect.gif 408# cp -f ../web_$MODEL/graph/wds_wds_anony_500.gif ./../web_$MODEL/graph/wds_wds_anony.gif 409# cp -f ../web_$MODEL/graph/wds_wds_both_500.gif ./../web_$MODEL/graph/wds_wds_both.gif 410 cp -f ../web_$MODEL/graph/wf_g_300.gif ../web_$MODEL/graph/wf_g.gif 411 cp -f ../web_$MODEL/graph/wf_none_300.gif ../web_$MODEL/graph/wf_none.gif 412 413 ### 4.4 Script and module ### 414 #cp -f ../target/init/functions_500g ../target/init/functions 415 #cp -f ../target/init/firewall.refresh_600g ../target/init/firewall.refresh 416 #cp -f ../target/init/rc.prnsvr_600g ../target/init/rc.prnsvr 417 #cp -f ../target/web/script/route.sh_600g ../target/web/script/route.sh 418 #cp -f ../target/web/script/portmapping.sh_600g ../target/web/script/portmapping.sh 419 420 #cp -f ../target/web/script/wlan11b.sh_600g ../target/web/script/wlan11b.sh 421 422 #cp -f ../target/lib/modules/2.4.5/splink_led.o_300g ../target/lib/modules/2.4.5/splink_led.o 423 #cp -f ../target/lib/modules/2.4.5/parport/lp.o_500g ../target/lib/modules/2.4.5/parport/lp.o 424 425 #if [ "$MODELID" != "$MODEL" ]; then 426 #cp -f ../target/usr/sbin/upnp_Netgear ../target/usr/sbin/upnp 427 #cp -f ../target/sbin/lpd_usb ../target/sbin/lpd 428 #cp -f ../target/sbin/infosvr_usb ../target/sbin/infosvr 429 #cp -f ../target/init/rc.prnsvr_usb ../target/init/rc.prnsvr 430 #else 431 #cp -f ../target/usr/sbin/upnp_500g ../target/usr/sbin/upnp 432 #cp -f ../target/sbin/lpd_600g ../target/sbin/lpd 433 #cp -f ../target/sbin/infosvr_600g ../target/sbin/infosvr 434 #cp -f ../target/init/rc.prnsvr_600g ../target/init/rc.prnsvr 435 #fi 436 elif [ "$MODEL" = "WL520g" ] || [ "$MODEL" = "WL530g" ]; then 437 ### 4.1 default value ### 438 cat ../web_$MODEL/flash.default \ 439 | sed 's/ApplyDevices=\"Both\"/ApplyDevices=\"802.11g only\"/g' \ 440 | sed 's/DmzDevices=\"Both\"/DmzDevices=\"802.11g only\"/g' > ../web_$MODEL/flash.default_500g 441 cp -f ../web_$MODEL/flash.default_500g ../target/ramfs/etc/linuxigd/flash.default 442 443 ### 4.2 web page ### 444 cp -f ../web_$MODEL/Advanced_Wireless11g_Content_520g.asp ../web_$MODEL/Advanced_Wireless_Content.asp 445 cp -f ../web_$MODEL/Advanced_ACL11g_Content.asp ../web_$MODEL/Advanced_ACL_Content.asp 446 447 cp -f ../web_$MODEL/Advanced_DMZIP11g_Content.asp ../web_$MODEL/Advanced_DMZIP_Content.asp 448 449 cp -f ../web_$MODEL/Advanced_WAdvanced_Content_520g.asp ../web_$MODEL/Advanced_WAdvanced_Content.asp 450 451 452 cp -f ../web_$MODEL/Advanced_LANWAN_Content_520g.asp ../web_$MODEL/Advanced_LANWAN_Content.asp 453 454 455 cp -f ../web_$MODEL/Advanced_BasicFirewall_Content_520g.asp ../web_$MODEL/Advanced_BasicFirewall_Content.asp 456 cp -f ../web_$MODEL/Advanced_Firewall_Content_520g.asp ../web_$MODEL/Advanced_Firewall_Content.asp 457 458 cp -f ../web_$MODEL/Advanced_VirtualServer_Content_520g.asp ../web_$MODEL/Advanced_VirtualServer_Content.asp 459 460 cp -f ../web_$MODEL/Main_GStatus11g_Content_520g.asp ../web_$MODEL/Main_GStatus_Content.asp 461 462 cp -f ../web_$MODEL/Main_WStatus11g_Content_520g.asp ../web_$MODEL/Main_WStatus_Content.asp 463 464 cp -f ../web_$MODEL/Main_Index_AccessPoint11g_520g.asp ../web_$MODEL/Main_Index_AccessPoint.asp 465 cp -f ../web_$MODEL/Main_Index_HomeGateway11g_520g.asp ../web_$MODEL/Main_Index_HomeGateway.asp 466 cp -f ../web_$MODEL/Main_Index_Router11g_520g.asp ../web_$MODEL/Main_Index_Router.asp 467 468 469 ### 4.3 web graph ### 470 cp -f ../web_$MODEL/graph/iBox_title_all_520g.jpg ./../web_$MODEL/graph/iBox_title_all.jpg 471 cp -f ../web_$MODEL/graph/internet_all_500.gif ./../web_$MODEL/graph/internet_all.gif 472 cp -f ../web_$MODEL/graph/internet_none_500.gif ./../web_$MODEL/graph/internet_none.gif 473 cp -f ../web_$MODEL/graph/internet_some_500.gif ./../web_$MODEL/graph/internet_some.gif 474 cp -f ../web_$MODEL/graph/wds_ap_500.gif ./../web_$MODEL/graph/wds_ap.gif 475 cp -f ../web_$MODEL/graph/wds_mixed_connect_500.gif ./../web_$MODEL/graph/wds_mixed_connect.gif 476 cp -f ../web_$MODEL/graph/wds_mixed_anony_500.gif ./../web_$MODEL/graph/wds_mixed_anony.gif 477 cp -f ../web_$MODEL/graph/wds_mixed_both_500.gif ./../web_$MODEL/graph/wds_mixed_both.gif 478 cp -f ../web_$MODEL/graph/wds_wds_connect_500.gif ./../web_$MODEL/graph/wds_wds_connect.gif 479 cp -f ../web_$MODEL/graph/wds_wds_anony_500.gif ./../web_$MODEL/graph/wds_wds_anony.gif 480 cp -f ../web_$MODEL/graph/wds_wds_both_500.gif ./../web_$MODEL/graph/wds_wds_both.gif 481 cp -f ../web_$MODEL/graph/wf_g_300.gif ../web_$MODEL/graph/wf_g.gif 482 cp -f ../web_$MODEL/graph/wf_none_300.gif ../web_$MODEL/graph/wf_none.gif 483 elif [ "$MODEL" = "WL600" ]; then 484 ### 4.1 default value ### 485 cp -f ../web_$MODEL/flash.default ../target/ramfs/etc/linuxigd/flash.default 486 487 ### 4.2 web page ### 488 cp -f ../web_$MODEL/Advanced_WirelessDual11g_Content.asp ../web_$MODEL/Advanced_Wireless_Content.asp 489 490 ### 4.3 web graph ### 491 cp -f ../web_$MODEL/graph/internet_all_600.gif ./../web_$MODEL/graph/internet_all.gif 492 cp -f ../web_$MODEL/graph/internet_none_600.gif ./../web_$MODEL/graph/internet_none.gif 493 cp -f ../web_$MODEL/graph/internet_some_600.gif ./../web_$MODEL/graph/internet_some.gif 494 cp -f ../web_$MODEL/graph/wf_g_600.gif ./../web_$MODEL/graph/wf_g.gif 495 cp -f ../web_$MODEL/graph/wf_none_600.gif ./../web_$MODEL/graph/wf_none.gif 496 cp -f ../web_$MODEL/graph/wf_a_600.gif ./../web_$MODEL/graph/wf_a.gif 497 cp -f ../web_$MODEL/graph/wf_both_600.gif ./../web_$MODEL/graph/wf_both.gif 498 499 ### 4.4 Script and module ### 500 cp -f ../target/init/functions_600g ../target/init/functions 501 cp -f ../target/init/firewall.refresh_600g ../target/init/firewall.refresh 502 cp -f ../target/init/rc.prnsvr_600g ../target/init/rc.prnsvr 503 cp -f ../target/web/script/route.sh_600g ../target/web/script/route.sh 504 cp -f ../target/web/script/portmapping.sh_600g ../target/web/script/portmapping.sh 505 506 cp -f ../target/web/script/wlan11b.sh_600g ../target/web/script/wlan11b.sh 507 508 cp -f ../target/lib/modules/2.4.5/splink_led.o_600g ../target/lib/modules/2.4.5/splink_led.o 509 cp -f ../target/lib/modules/2.4.5/parport/lp.o_600g ../target/lib/modules/2.4.5/parport/lp.o 510 cp -f ../target/usr/sbin/upnp_600g ../target/usr/sbin/upnp 511 cp -f ../target/sbin/lpd_600g ../target/sbin/lpd 512 cp -f ../target/sbin/infosvr_600g ../target/sbin/infosvr 513 fi 514 515 if [ "$2" = "ML" ]; then 516 cp -f ../web_$MODEL/graph/noLogoA.jpg ../web_$MODEL/graph/asusLogoA.jpg 517 cp -f ../web_$MODEL/graph/noLogoG.jpg ../web_$MODEL/graph/asusLogoG.jpg 518 cp -f ../web_$MODEL/graph/noLogoR.jpg ../web_$MODEL/graph/asusLogoR.jpg 519 520 if [ "$MODEL" = "WL500g" ]; then 521 cp -f ../web_$MODEL/graph/iBox_title_all_500g_nologo.jpg ./../web_$MODEL/graph/iBox_title_all.jpg 522 elif [ "$MODEL" = "WL500gx" ]; then 523 cp -f ../web_$MODEL/graph/iBox_title_all_500gx_nologo.jpg ./../web_$MODEL/graph/iBox_title_all.jpg 524 elif [ "$MODEL" = "WL300g" ]; then 525 cp -f ../web_$MODEL/graph/iBox_title_all_300g_nologo.jpg ./../web_$MODEL/graph/iBox_title_all.jpg 526 elif [ "$MODEL" = "WL500b" ] || [ "$MODEL" = "WL500bv2" ]; then 527 cp -f ../web_$MODEL/graph/iBox_title_all_500b_nologo.jpg ./../web_$MODEL/graph/iBox_title_all.jpg 528 fi 529 fi 530 rm -rf ../web_$MODEL/graph/*nologo*.* 531 rm -rf ../web_$MODEL/graph/noLog*.* 532 rm -rf ../web_$MODEL/graph/asusLogA.jpg 533 rm -rf ../web_$MODEL/graph/asusLogG.jpg 534 rm -rf ../web_$MODEL/graph/asusLogR.jpg 535 536 ### 6. Remove useless files in ./target/web/* ### 537 rm -rf ../web_$MODEL/flash.default* 538 rm -rf ../web_$MODEL/*11g*.asp 539 rm -rf ../web_$MODEL/*11b*.asp 540 rm -rf ../web_$MODEL/*_300g.asp 541 rm -rf ../web_$MODEL/*_520g.asp 542 rm -rf ../web_$MODEL/*_550g*.asp 543 rm -rf ../web_$MODEL/*_SP.asp 544 rm -rf ../web_$MODEL/*00g.jpg 545 546 rm -rf ../web_$MODEL/*501b.* 547 rm -rf ../web_$MODEL/*500g.* 548 rm -rf ../web_$MODEL/*520*.* 549 rm -rf ../web_$MODEL/*Client*.* 550 rm -rf ../web_$MODEL/*ClientMore*.asp 551 rm -rf ../web_$MODEL/*Certificate*.asp 552 rm -rf ../web_$MODEL/*UniqueKey*.asp 553 rm -rf ../web_$MODEL/*lite.asp 554 555 556 rm -rf ../web_$MODEL/graph/*_300.* 557 rm -rf ../web_$MODEL/graph/*_500.* 558 rm -rf ../web_$MODEL/graph/*_600.* 559 rm -rf ../web_$MODEL/graph/*_500g.* 560 rm -rf ../web_$MODEL/graph/*_550g*.* 561 rm -rf ../web_$MODEL/graph/*_500b.* 562 rm -rf ../web_$MODEL/graph/*_300g.* 563 rm -rf ../web_$MODEL/graph/*_500gx.* 564 rm -rf ../web_$MODEL/graph/*_520g.* 565 rm -rf ../web_$MODEL/graph/*_331g.* 566 rm -rf ../web_$MODEL/graph/*firewall*.* 567 rm -rf ../web_$MODEL/graph/wf_*.* 568 #rm -rf ../web_$MODEL/graph/asusLogo.* 569 rm -rf ../web_$MODEL/graph/asusLogoA.* 570 rm -rf ../web_$MODEL/graph/asusLogoG.* 571 rm -rf ../web_$MODEL/graph/asusLogoR.* 572 rm -rf ../web_$MODEL/graph/gatewayLogo.* 573 rm -rf ../web_$MODEL/graph/iBox_title_all_* 574 if [ "$MODEL" = "WL520gu" ]; then 575 rm -rf ../web_$MODEL/Advanced_ASUSDDNS_Content.asp 576 rm -rf ../web_$MODEL/Advanced_Other_Content.asp 577 rm -rf ../web_$MODEL/Advanced_Storage* 578 rm -rf ../web_$MODEL/Advanced_Printer* 579 rm -rf ../web_$MODEL/Advanced_Authentication_Content.asp 580 rm -rf ../web_$MODEL/Advanced_WebCam_Content.asp 581 rm -rf ../web_$MODEL/Advanced_WirelessGuest_Content.asp 582 rm -rf ../web_$MODEL/Advanced_USBStorage_Content.asp 583 rm -rf ../web_$MODEL/bandwidth_advanced.asp 584 rm -rf ../web_$MODEL/graph/internet_all.gif 585 rm -rf ../web_$MODEL/EMITest.asp 586 rm -rf ../web_$MODEL/ShowWebCam* 587 rm -rf ../web_$MODEL/firmware.asp 588 rm -rf ../web_$MODEL/Advanced_DMZLAN_Content.asp 589 rm -rf ../web_$MODEL/Advanced_DMZWAN_Content.asp 590 rm -rf ../web_$MODEL/Advanced_DynamicRoute_Content.asp 591 rm -rf ../web_$MODEL/Advanced_MultiPPPoE_Content.asp 592 rm -rf ../web_$MODEL/Advanced_ShowTime_Widzard.asp 593 rm -rf ../web_$MODEL/index_JP.asp 594 rm -rf ../web_$MODEL/WlanUpdate.asp 595 rm -rf ../web_$MODEL/WizardFirst.asp 596 rm -rf ../web_$MODEL/redirecting.asp 597 rm -rf ../web_$MODEL/redirect.asp 598 rm -rf ../web_$MODEL/netcam_mfc_activeX.cab 599 rm -rf ../web_$MODEL/Main_Status_Content.asp 600 rm -rf ../web_$MODEL/Main_List.asp 601 rm -rf ../web_$MODEL/Basic_AccessPoint_SaveRestart.asp 602 rm -rf ../web_$MODEL/Main_Content.asp 603 rm -rf ../web_$MODEL/Main_Index.asp 604 rm -rf ../web_$MODEL/Advanced_WMMADV_Content.asp 605 rm -rf ../web_$MODEL/Advanced_RMISC_Content.asp 606 rm -rf ../web_$MODEL/Advanced_PortForwarding_Widzard.asp 607 rm -rf ../web_$MODEL/Advanced_DMZDLFilter_Content.asp 608 rm -rf ../web_$MODEL/Advanced_DMZDHCP_Content.asp 609 rm -rf ../web_$MODEL/Advanced_DMZIP_Content.asp 610 rm -rf ../web_$MODEL/Advanced_DMZDWFilter_Content.asp 611 rm -rf ../web_$MODEL/Advanced_LFirewall_Content.asp 612 rm -rf ../web_$MODEL/Advanced_LANWAN_Content_JP.asp 613 rm -rf ../web_$MODEL/Advanced_BMAdv_Content.asp 614 rm -rf ../web_$MODEL/Advanced_GRouterHelp_Widzard.asp 615 rm -rf ../web_$MODEL/Advanced_Help_Widzard.asp 616 rm -rf ../web_$MODEL/Advanced_BandwidthManagement_Content.asp 617 rm -rf ../web_$MODEL/Advanced_NAT_Content.asp 618 rm -rf ../web_$MODEL/Advanced_RDHCP_Content.asp 619 rm -rf ../web_$MODEL/Advanced_RemoteControl_Widzard.asp 620 rm -rf ../web_$MODEL/Advanced_RLANWAN_Content.asp 621 rm -rf ../web_$MODEL/Advanced_RouterHelp_Widzard.asp 622 #rm -rf ../web_$MODEL/Main_Operation.asp 623 rm -rf ../web_$MODEL/graph/AP.gif 624 rm -rf ../web_$MODEL/graph/Connecting.gif 625 rm -rf ../web_$MODEL/graph/Corner.gif 626 rm -rf ../web_$MODEL/graph/delthisentry.gif 627 rm -rf ../web_$MODEL/graph/dir.gif 628 rm -rf ../web_$MODEL/graph/Disconnect.gif 629 rm -rf ../web_$MODEL/graph/Firewall.gif 630 rm -rf ../web_$MODEL/graph/\!.gif 631 rm -rf ../web_$MODEL/graph/help.gif 632 rm -rf ../web_$MODEL/graph/iBox.gif 633 rm -rf ../web_$MODEL/graph/internet.gif 634 rm -rf ../web_$MODEL/graph/List_backgroup.gif 635 rm -rf ../web_$MODEL/graph/many.gif 636 rm -rf ../web_$MODEL/graph/Notebook.gif 637 rm -rf ../web_$MODEL/graph/PC.gif 638 rm -rf ../web_$MODEL/graph/pixel.gif 639 rm -rf ../web_$MODEL/graph/restore.gif 640 rm -rf ../web_$MODEL/graph/sArrow.gif 641 rm -rf ../web_$MODEL/graph/save.gif 642 rm -rf ../web_$MODEL/graph/showroutingtable.gif 643 rm -rf ../web_$MODEL/graph/start.gif 644 rm -rf ../web_$MODEL/graph/sumhorsd.gif 645 rm -rf ../web_$MODEL/graph/sumtextb.jpg 646 rm -rf ../web_$MODEL/graph/Upload_BAD.gif 647 rm -rf ../web_$MODEL/graph/Upload.gif 648 rm -rf ../web_$MODEL/graph/Upload_OK.gif 649 rm -rf ../web_$MODEL/graph/V.gif 650 rm -rf ../web_$MODEL/graph/x.gif 651 rm -rf ../web_$MODEL/graph/internet_none.gif 652 rm -rf ../web_$MODEL/graph/internet_some.gif 653 #rm -rf ../web_$MODEL/slider/* 654 rm -rf ../web_$MODEL/Advanced_BMBasic_Content.asp 655 #rm -rf ../web_$MODEL/graph/download_botton_bg.gif 656 #rm -rf ../web_$MODEL/graph/video_botton_bg.gif 657 rm -rf ../web_$MODEL/graph/server_botton_bg.gif 658 #rm -rf ../web_$MODEL/graph/game_botton_bg.gif 659 #rm -rf ../web_$MODEL/Advanced_QOS* 660 rm -rf ../web_$MODEL/Basic_Router_SaveRestart.asp 661 rm -rf ../web_$MODEL/Advanced_VirtualServer_Widzard.asp 662 #rm -rf ../web_$MODEL/graph/asusLogo.jpg 663 #rm -rf ../web_$MODEL/Main_UStatus_Content.asp 664 #rm -rf ../web_$MODEL/Main_RStatus_Content.asp 665 fi 666 667 if [ "$MODEL" = "WL520g" ] || [ "$MODEL" = "WL500gpv2" ] || [ "$MODEL" = "WL520gu" ] || [ "$MODEL" = "WL500bl" ] || [ "$MODEL" = "WL331gl" ]; then 668 if [ "$MODEL" = "WL500gpv2" ] || [ "$MODEL" = "WL520gu" ]; then 669 LIST=`cat ../notinNOFULLUSB` 670 else 671 LIST=`cat ../notin2MB` 672 fi 673 pwd 674 # Embed Module ID to *.js 675 for i in $LIST; do 676 rm -rf ../www_$MODEL/$i* 677 #echo ../web_$MODEL/$i 678 done 679 fi 680 681 ### 8. Remove tempdir ### 682 #rm -rf ../web_$MODEL 683else 684 echo Usage: [Model] 685fi 686 687