I picked up a Macally wifihdd on ebay and after some investigation found out it is the exact same board as the intenso m2m https://openwrt.org/toh/intenso/m2m. So I connected serial and flashed it with OpenWrt18.06.4. The device is a usb 3.0 hard drive enclosure with fast ethernet and wifi. I currrently have it configured as access point which uses dhcp client to get an ip address from the router and shares the connection over wifi. This works fine and I can use samba to access the files on the drive. However when I disconnect the ethernet cable the device loses the ip address and I can't access the files any more. Is there a way to configure OpenWrt such that it switches to a fixed ip address when dhcp client does not find a connection on eth0?
My current network config is as follows:
typeconfig interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config globals 'globals' option ula_prefix 'fd8d:367e:2795::/48' config interface 'lan' option type 'bridge' option ifname 'eth0' option proto 'dhcp' option delegate '0' config device 'lan_dev' option name 'eth0' option macaddr '00:1c:c2:0f:07:85' config switch option name 'switch0' option reset '1' option enable_vlan '0'