openwrt网口插拔更新wan口IP
修改源码方式,PATCH回头补
此方式clean后失效
openwrt-18.06.9/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/linux-4.14.206/drivers/net/ethernet/mtk/esw_rt3050.c
433行增加:
struct work_struct kill_sig_wq;
void kill_sig_workq(struct work_struct *work)
{
dev_info(NULL, "kill_sig_workq\n");
struct file *fp;
mm_segment_t fs;
char pid[8];
struct task_struct *p = NULL;
fs = get_fs();
set_fs(get_ds());
//read udhcpc pid from file, and send signal USR2,USR1 to get a new IP
fp <