jeremienguyen
Senior Member
Mình back lại bản FriendlyElec thì ko dính, chắc bug rồi bácReset lại từ đầu, nếu còn lỗi thì bản đó bị bug.
Phải viết hẳn cái scripts ròi đưa vô schedule task, đại loại như vầy:
- Tạo file scripts text /etc/changednsport.sh :
- Set quyền thực thi cho file scripts trên:Code:#!/bin/sh uci set dhcp.@dnsmasq[0].port="53" uci commit dhcp sleep 2 /etc/init.d/dnsmasq restart
- Cuối cùng set schedule để nó chạy scripts trên theo lịch, vd cho chạy hàng ngày:Code:chmod +x /etc/changednsport.sh
0 0 * * * /etc/changednsport.sh