mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
use sync during boot wherever needed
This commit is contained in:
parent
92b32805eb
commit
8757a52ea0
@ -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
|
||||
|
@ -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
|
||||
;;
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user