Vorher:
Code:
/var/flash $ ls -l
crw-r--r-- 1 root root 240, 113 Jan 1 01:54 ar7.cfg
crw-r--r-- 1 root root 240, 141 Jan 1 01:00 calllog
crw-r--r-- 1 root root 240, 98 Jan 1 01:00 debug.cfg
crw-r--r-- 1 root root 240, 60 Jan 1 01:00 ds_mod
crw-r--r-- 1 root root 240, 132 Jan 1 01:00 fx_cg
-rwxr-xr-x 1 root root 16556 Jan 1 01:00 fx_conf
crw-r--r-- 1 root root 240, 99 Jan 1 01:00 fx_def
-rwxr-xr-x 1 root root 6440 Jan 1 01:00 fx_lcr
-rwxr-xr-x 1 root root 32768 Jan 1 01:00 fx_moh
crw-r--r-- 1 root root 240, 112 Jan 1 01:00 multid.leases
crw-r--r-- 1 root root 240, 117 Jan 1 01:00 net.update
crw-r--r-- 1 root root 240, 74 Jan 1 01:59 stat.cfg
-rwxr-xr-x 1 root root 2469 Jan 1 01:00 telefon_misc
crw-r--r-- 1 root root 240, 119 Jan 1 01:31 tr069.cfg
crw-r--r-- 1 root root 240, 114 Jan 1 01:31 voip.cfg
crw-r--r-- 1 root root 240, 118 Jan 1 01:00 vpn.cfg
crw-r--r-- 1 root root 240, 115 Jan 1 01:00 wlan.cfg
Patch:
Code:
--- rc.S 2007-09-10 16:43:15.000000000 +0200
+++ rc.S.cat 2007-09-10 14:29:47.000000000 +0200
@@ -23,22 +23,22 @@
if /usr/bin/checkempty /var/flash/${tmp_file_name}; then
if [ -f /etc/default.${tmp_country}/${tmp_file_name}.${tmp_oem}.${tmp_index} ] ; then
echo "cp /etc/default.${tmp_country}/${tmp_file_name}.${tmp_oem}.${tmp_index} /var/flash/${tmp_file_name}"
- cp /etc/default.${tmp_country}/${tmp_file_name}.${tmp_oem}.${tmp_index} /var/flash/${tmp_file_name}
+ cat /etc/default.${tmp_country}/${tmp_file_name}.${tmp_oem}.${tmp_index} > /var/flash/${tmp_file_name}
return
fi
if [ -f /etc/default.${tmp_country}/${tmp_file_name}.${tmp_oem} ] ; then
echo "cp /etc/default.${tmp_country}/${tmp_file_name}.${tmp_oem} /var/flash/${tmp_file_name}"
- cp /etc/default.${tmp_country}/${tmp_file_name}.${tmp_oem} /var/flash/${tmp_file_name}
+ cat /etc/default.${tmp_country}/${tmp_file_name}.${tmp_oem} > /var/flash/${tmp_file_name}
return
fi
if [ -f /etc/default.${tmp_country}/${tmp_file_name}.default.${tmp_index} ] ; then
echo "cp /etc/default.${tmp_country}/${tmp_file_name}.default.${tmp_index} /var/flash/${tmp_file_name}"
- cp /etc/default.${tmp_country}/${tmp_file_name}.default.${tmp_index} /var/flash/${tmp_file_name}
+ cat /etc/default.${tmp_country}/${tmp_file_name}.default.${tmp_index} > /var/flash/${tmp_file_name}
return
fi
if [ -f /etc/default.${tmp_country}/${tmp_file_name}.default ] ; then
echo "cp /etc/default.${tmp_country}/${tmp_file_name}.default /var/flash/${tmp_file_name}"
- cp /etc/default.${tmp_country}/${tmp_file_name}.default > /var/flash/${tmp_file_name}
+ cat /etc/default.${tmp_country}/${tmp_file_name}.default /var/flash/${tmp_file_name}
return
fi
fi
nachher:
Code:
/var/flash $ ls -l
crw-r--r-- 1 root root 240, 113 Jan 1 01:03 ar7.cfg
crw-r--r-- 1 root root 240, 141 Jan 1 01:00 calllog
crw-r--r-- 1 root root 240, 98 Jan 1 01:00 debug.cfg
crw-r--r-- 1 root root 240, 60 Jan 1 01:00 ds_mod
crw-r--r-- 1 root root 240, 132 Jan 1 01:00 fx_cg
crw-r--r-- 1 root root 240, 129 Jan 1 01:00 fx_conf
crw-r--r-- 1 root root 240, 99 Jan 1 01:00 fx_def
crw-r--r-- 1 root root 240, 130 Jan 1 01:00 fx_lcr
crw-r--r-- 1 root root 240, 131 Jan 1 01:00 fx_moh
crw-r--r-- 1 root root 240, 112 Jan 1 01:00 multid.leases
crw-r--r-- 1 root root 240, 117 Jan 1 01:00 net.update
crw-r--r-- 1 root root 240, 116 Jan 1 01:00 stat.cfg
crw-r--r-- 1 root root 240, 133 Jan 1 01:00 telefon_misc
crw-r--r-- 1 root root 240, 119 Jan 1 01:00 tr069.cfg
crw-r--r-- 1 root root 240, 114 Jan 1 01:00 voip.cfg
crw-r--r-- 1 root root 240, 118 Jan 1 01:00 vpn.cfg
crw-r--r-- 1 root root 240, 115 Jan 1 01:00 wlan.cfg
Und wiedereinmal frage ich mich warum das vorher keinem aufgefallen ist. Das sollte mit jeder dsmod-Firmware nach "Auf Werkseinstellungen zurücksetzen" passieren.
MfG Oliver