diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2017-06-05 12:25:43 +0200 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2017-06-05 12:25:43 +0200 |
commit | 70e1655d0002880c7ff7dd038eb3247d0c0859a0 (patch) | |
tree | 371a258dc7964bea511c64f910f5f6fb74cb51cf | |
parent | 12df5af6f24de6ba820f82695d3c483328bb9629 (diff) | |
download | chd_openwrt-70e1655d0002880c7ff7dd038eb3247d0c0859a0.zip chd_openwrt-70e1655d0002880c7ff7dd038eb3247d0c0859a0.tar.gz chd_openwrt-70e1655d0002880c7ff7dd038eb3247d0c0859a0.tar.bz2 |
dev to prod
-rw-r--r-- | maj/gen.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/maj/gen.php b/maj/gen.php index 0bd075a..e888763 100644 --- a/maj/gen.php +++ b/maj/gen.php @@ -66,12 +66,18 @@ $res &= checksame('key1', 'key2', 'Les mots de passes ne correspondent pas', $er switch ($_POST['profile']) { case 'TLWR740': switch($_POST['revision']) { + case '51': + $profile='TLWR740'; + $user_filename="mise-a-jour-routeur-TLWR740v5.1.bin"; + $gen_filename="bin/ar71xx/openwrt-ar71xx-generic-tl-wr740n-v5-squashfs-factory.bin"; + break; case '4': case '5': + case '6': $profile='TLWR740'; $revision=$_POST['revision']; $user_filename="mise-a-jour-routeur-TLWR740v$revision.bin"; - $gen_filename="bin/ar71xx/openwrt-15.05.1-ar71xx-generic-tl-wr740n-v$revision-squashfs-factory.bin"; + $gen_filename="bin/ar71xx/openwrt-ar71xx-generic-tl-wr740n-v$revision-squashfs-factory.bin"; break; default: $errors['revision'] = 'Routeur non supporté (' . (isset($_POST['revision'])?$_POST[$index]:'vide') . ')'; @@ -82,11 +88,11 @@ switch ($_POST['profile']) { switch($_POST['revision']) { case '9': case '10': + case '11': $profile='TLWR841'; $revision=$_POST['revision']; - //$user_filename='wr841nv9_wr841ndv9_en_3_16_9_up(150310).bin'; $user_filename="mise-a-jour-routeur-TLWR841v$revision.bin"; - $gen_filename="bin/ar71xx/openwrt-15.05.1-ar71xx-generic-tl-wr841n-v$revision-squashfs-factory.bin"; + $gen_filename="bin/ar71xx/openwrt-ar71xx-generic-tl-wr841n-v$revision-squashfs-factory.bin"; break; default: $errors['revision'] = 'Routeur non supporté (' . (isset($_POST['revision'])?$_POST[$index]:'vide') . ')'; |