From 5c413a12d9d4a7fa8d522620109d31236119044d Mon Sep 17 00:00:00 2001
From: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: Wed, 13 Feb 2019 15:13:03 +0100
Subject: [PATCH] wifi: add hotplug script for wifi config generation

---
 lq-wave-300_5_x/files/etc/hotplug.d/net/00-wifi-detect | 5 +++++
 1 file changed, 5 insertions(+)
 create mode 100644 lq-wave-300_5_x/files/etc/hotplug.d/net/00-wifi-detect

diff --git a/lq-wave-300_5_x/files/etc/hotplug.d/net/00-wifi-detect b/lq-wave-300_5_x/files/etc/hotplug.d/net/00-wifi-detect
new file mode 100644
index 0000000..43e7987
--- /dev/null
+++ b/lq-wave-300_5_x/files/etc/hotplug.d/net/00-wifi-detect
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+[ "${ACTION}" = "add" ] && [ "${INTERFACE%%[0-9]}" = "wlan" ] && {
+	/sbin/wifi config
+}
-- 
GitLab