use sync during boot wherever needed

This commit is contained in:
Calin Crisan 2016-05-20 18:54:11 +03:00
parent 92b32805eb
commit 8757a52ea0
5 changed files with 9 additions and 1 deletions

View File

@ -35,6 +35,7 @@ case "$1" in
cp /etc/version /data/etc/version
ln -s /usr/share/zoneinfo/UTC /data/etc/localtime
touch /data/etc/adjtime
sync
msg_done
# mount other partitions depending on data

View File

@ -26,7 +26,8 @@ case "$1" in
sed -r -i 's/root:([^:]+):[[:digit:]]+:/root:\1::/' /data/etc/shadow # removes pwd expiration
sed -r -i 's/admin:([^:]+):[[:digit:]]+:/admin:\1::/' /data/etc/shadow # removes pwd expiration
sync
msg_done
;;

View File

@ -18,6 +18,7 @@ start() {
umask 077
hostname=$(hostname)
echo "Welcome to $hostname!" > /var/cache/sshd_banner
sync
/usr/sbin/sshd -f $conf
test $? == 0 && msg_done || msg_fail

View File

@ -108,6 +108,8 @@ start() {
curl -s -m 60 --data "$body" "http://127.0.0.1:$port$loc&_signature=$signature" > /dev/null
index=$(($index + 1))
done
sync
fi
if [ -z "$meyewatch_disable" ]; then

View File

@ -4,3 +4,6 @@ options mwifiex disconnect_on_suspend=0
options rndis_wlan power_save=0
options b43 hwpctl=0
options ath6kl_core suspend_mode=1
options stk1160 keep_buffers=1