[root@(none) (ttySC2) /tmp]# cp /etc/config/rc.local /tmp [root@(none) (ttySC2) /tmp]# echo "echo hello" >> /etc/config/rc.local [root@(none) (ttySC2) /tmp]# flatfsd -v flatfsd 3.0.1mtd [root@(none) (ttySC2) /tmp]# du -h /etc/config/ 1.8M /etc/config/AlcdSetting 1.8M /etc/config/ [root@(none) (ttySC2) /tmp]# ls -l /etc/config/ total 2 drwxr-xr-x 2 root root 1024 Jan 1 09:00 AlcdSetting/ -rw-r--r-- 1 root root 0 Jan 1 09:00 HOSTNAME -rw-r--r-- 1 root root 0 Dec 9 2015 HOSTNAME~ -rwxr-xr-x 1 root root 0 Jan 1 09:00 acm-cert.sh* -rw-r--r-- 1 root root 0 Jan 1 09:00 at-admin -rwxr-xr-x 1 root root 0 Jan 1 09:00 awl13-firmware-load.sh* -rw-r--r-- 1 root root 0 Jan 1 09:00 dhcpd.conf -rw-r--r-- 1 root root 0 Jan 1 09:00 hosts -rw-r--r-- 1 root root 0 Dec 9 2015 hosts~ -rw-r--r-- 1 root root 0 Jan 1 09:00 interfaces -rw-r--r-- 1 root root 0 Jan 1 09:00 interfaces~ -rwxr-xr-x 1 root root 0 Jan 1 09:00 mjpg-streamer.sh* -rwxr-xr-x 1 root root 11 Jan 1 09:01 rc.local* -rwxr-xr-x 1 root root 0 Dec 9 2015 rc.local~* -rw-r--r-- 1 root root 0 Jan 1 09:00 resolv.conf -rw------- 1 root root 0 Jan 1 09:00 secrets.tdb -rw-r--r-- 1 root root 0 Jan 1 09:00 smb.conf -rw-r--r-- 1 root root 0 Dec 9 2015 smb.conf~ -rw-r--r-- 1 root root 0 Jan 1 09:00 smbpasswd -rw------- 1 root root 0 Jan 1 09:00 ssh_host_dsa_key -rw-r--r-- 1 root root 0 Jan 1 09:00 ssh_host_dsa_key.pub -rw------- 1 root root 0 Jan 1 09:00 ssh_host_key -rw-r--r-- 1 root root 0 Jan 1 09:00 ssh_host_key.pub -rw------- 1 root root 0 Jan 1 09:00 ssh_host_rsa_key -rw-r--r-- 1 root root 0 Jan 1 09:00 ssh_host_rsa_key.pub [root@(none) (ttySC2) /tmp]# flatfsd -s flatfsd: saving fs to partition 1, tstamp=-1086986075 flatfsd: Wrote 2463785 bytes to flash in 25 seconds [root@(none) (ttySC2) /tmp]# rm /etc/config/rc.local -f [root@(none) (ttySC2) /tmp]# flatfsd -r flatfsd: restore fs- from partition 1, tstamp=-1086986075 flatfsd: Created 39 configuration files (1819693 bytes) [root@(none) (ttySC2) /tmp]# du -h /etc/config/ 1.8M /etc/config/AlcdSetting 1.8M /etc/config/ [root@(none) (ttySC2) /tmp]# ls -l /etc/config/ total 2 drwxr-xr-x 2 root root 1024 Jan 1 09:00 AlcdSetting/ -rw-r--r-- 1 root root 0 Jan 1 09:03 HOSTNAME -rw-r--r-- 1 root root 0 Jan 1 09:03 HOSTNAME~ -rwxr-xr-x 1 root root 0 Jan 1 09:03 acm-cert.sh* -rw-r--r-- 1 root root 0 Jan 1 09:03 at-admin -rwxr-xr-x 1 root root 0 Jan 1 09:03 awl13-firmware-load.sh* -rw-r--r-- 1 root root 0 Jan 1 09:03 dhcpd.conf -rw-r--r-- 1 root root 0 Jan 1 09:03 hosts -rw-r--r-- 1 root root 0 Jan 1 09:03 hosts~ -rw-r--r-- 1 root root 0 Jan 1 09:03 interfaces -rw-r--r-- 1 root root 0 Jan 1 09:03 interfaces~ -rwxr-xr-x 1 root root 0 Jan 1 09:03 mjpg-streamer.sh* -rwxr-xr-x 1 root root 11 Jan 1 09:03 rc.local* -rwxr-xr-x 1 root root 0 Jan 1 09:03 rc.local~* -rw-r--r-- 1 root root 0 Jan 1 09:03 resolv.conf -rw------- 1 root root 0 Jan 1 09:03 secrets.tdb -rw-r--r-- 1 root root 0 Jan 1 09:03 smb.conf -rw-r--r-- 1 root root 0 Jan 1 09:03 smb.conf~ -rw-r--r-- 1 root root 0 Jan 1 09:03 smbpasswd -rw------- 1 root root 0 Jan 1 09:03 ssh_host_dsa_key -rw-r--r-- 1 root root 0 Jan 1 09:03 ssh_host_dsa_key.pub -rw------- 1 root root 0 Jan 1 09:03 ssh_host_key -rw-r--r-- 1 root root 0 Jan 1 09:03 ssh_host_key.pub -rw------- 1 root root 0 Jan 1 09:03 ssh_host_rsa_key -rw-r--r-- 1 root root 0 Jan 1 09:03 ssh_host_rsa_key.pub [root@(none) (ttySC2) /tmp]# cat /etc/config/rc.local echo hello [root@(none) (ttySC2) /tmp]#