Buat file, contoh "/etc/obeng.sh" dengan menggunakan WinSCP. Belum tau caranya, klik DISINI.
Isikan baris berikut didalam file tsbt
sesuaikan text "3g-smart" dengan nama wan yg ada pada router, jika salah ketik, maka akan reconnect terus koneksinya dlm 1 menit
----------------------------------------------------------------
#!/bin/sh
if ! ping -q -c 1 -W 10 -I 3g-smart 8.8.8.8 > /dev/null; then
(ifup smart; sleep 5; ping -I 3g-smart google.com) &
fi
-----------------------------------------------------------------
Setelah disimpan file tsbt, masuk ke PUTTY , masukkan perintah berikut per 1 baris, caranya blok 1 baris perintah, lalu klik kanan dilayar PUTTY
----------------------------------------------------------------
chmod 755 /etc/obeng.sh
/etc/init.d/cron stop
echo "*/1 * * * * /etc/obeng.sh" >> /etc/crontabs/root
/etc/init.d/cron enable
/etc/init.d/cron start
------------------------------------------------------------
Selesai ......
Jika ada pertanya'an/koreksi/saran , silahkan posting di kolom komentar yg telah saya sediakan
semoga yg satu ini bisa lebih simple
BalasHapusroot@OpenWrt:vi /etc/ping.sh
(isikan tanpa ==)
========================================
#!/bin/sh
ping -q -s 24 yahoo.com > /dev/null &
ping -q -s 24 openwrt.org > /dev/null &
========================================
root@OpenWrt:chmod 755 /etc/ping.sh
root@OpenWrt:vi /etc/rc.local
(isikan tanpa ==)
========================================
/etc/ping.sh
========================================
(isikan sebelum exit 0)
root@OpenWrt:chmod 755 /etc/rc.local
root@OpenWrt:/etc/rc.local enable
root@OpenWrt:/etc/rc.local start
root@OpenWrt:reboot
*vi texteditor command
http://www.cs.rit.edu/~cslab/vi.html
continous ping command openwrt
BalasHapus