Skip to content

Commit 51ad231

Browse files
committed
bug-fix:
- /atom/config/の更新時にsync処理を追加
1 parent 588eb9d commit 51ad231

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

overlay_rootfs/etc/init.d/S38atomcam

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ case "$1" in
1414
if [ ! -f /atom/configs/.product_config -o ! -f /atom/configs/.user_config ] ; then
1515
mount -t jffs2 /dev/mtdblock6 /mnt
1616
cp -p /mnt/.* /mnt/* /atom/configs 2> /dev/null
17+
echo 3 > /proc/sys/vm/drop_caches
1718
umount /mnt
1819
sync
1920
fi

overlay_rootfs/scripts/webcmd.sh

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ do
108108
}
109109
' POS="$pos" /atom/configs/.user_config > /atom/configs/.user_config_new
110110
mv -f /atom/configs/.user_config_new /atom/configs/.user_config
111+
echo 3 > /proc/sys/vm/drop_caches
111112
echo "$cmd OK" >> /var/run/webres
112113
cmd=""
113114
fi

0 commit comments

Comments
 (0)