I was also able to add kmod-usb-storage, kmod-fs-vfat, kmod-nls-iso8859-1 and kmod-nls-cp437, into the 8 Mbytes flash, so I added three things:
- add FAT32 (universal filesystem) USB flash disk to store MP3 files to be played without any internet connection
opkg update
opkg install kmod-usb-storage kmod-fs-vfat kmod-nls-iso8859-1 kmod-nls-cp437
reboot
after reboot:
mkdir /mnt/sda1
mount -t vfat /dev/sda1 /mnt/sda1 -o rw,sync
2) create in the USB storage a text file (command) containg configuration for WiFi connection, so anyone will be able to easily change the WiFi connection just by editing the file in the external USB storage (if USB storage is missing or unreadable, the system will load the default /etc/config/wireless configuration).
wifi configuration file:
/mnt/sda1/wifi.sh
/sbin/uci set wireless.@wifi-iface[0].ssid=new_wifi #change this
/sbin/uci set wireless.@wifi-iface[0].device=radio0
/sbin/uci set wireless.@wifi-iface[0].mode=sta
/sbin/uci set wireless.@wifi-iface[0].key=wifi_password #change this
/sbin/uci set wireless.@wifi-iface[0].encryption=psk-mixed #universal wpa&wpa2
/sbin/uci commit wireless
/sbin/wifi reload
This command file will be reloaded and launched at each reboot just after the USB storage is mounted:
/etc/rc.local
#
/bin/mount -t vfat /dev/sda1 /mnt/sda1 -o rw,sync #mount FAT32 USB storage
/bin/sleep 1
/bin/sh /mnt/sda1/wifi.sh #the command file stored in the external USB storage
exit 0
- store MPD radio playlists (internet radios and MP3 files) in the USB storage instead of in the rc.local internal file as described in my previous HowTo, for easier modification.