mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +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
|
cp /etc/version /data/etc/version
|
||||||
ln -s /usr/share/zoneinfo/UTC /data/etc/localtime
|
ln -s /usr/share/zoneinfo/UTC /data/etc/localtime
|
||||||
touch /data/etc/adjtime
|
touch /data/etc/adjtime
|
||||||
|
sync
|
||||||
msg_done
|
msg_done
|
||||||
|
|
||||||
# mount other partitions depending on data
|
# mount other partitions depending on data
|
||||||
|
@ -26,6 +26,7 @@ case "$1" in
|
|||||||
|
|
||||||
sed -r -i 's/root:([^:]+):[[:digit:]]+:/root:\1::/' /data/etc/shadow # removes pwd expiration
|
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
|
sed -r -i 's/admin:([^:]+):[[:digit:]]+:/admin:\1::/' /data/etc/shadow # removes pwd expiration
|
||||||
|
sync
|
||||||
|
|
||||||
msg_done
|
msg_done
|
||||||
;;
|
;;
|
||||||
|
@ -18,6 +18,7 @@ start() {
|
|||||||
umask 077
|
umask 077
|
||||||
hostname=$(hostname)
|
hostname=$(hostname)
|
||||||
echo "Welcome to $hostname!" > /var/cache/sshd_banner
|
echo "Welcome to $hostname!" > /var/cache/sshd_banner
|
||||||
|
sync
|
||||||
|
|
||||||
/usr/sbin/sshd -f $conf
|
/usr/sbin/sshd -f $conf
|
||||||
test $? == 0 && msg_done || msg_fail
|
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
|
curl -s -m 60 --data "$body" "http://127.0.0.1:$port$loc&_signature=$signature" > /dev/null
|
||||||
index=$(($index + 1))
|
index=$(($index + 1))
|
||||||
done
|
done
|
||||||
|
|
||||||
|
sync
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$meyewatch_disable" ]; then
|
if [ -z "$meyewatch_disable" ]; then
|
||||||
|
@ -4,3 +4,6 @@ options mwifiex disconnect_on_suspend=0
|
|||||||
options rndis_wlan power_save=0
|
options rndis_wlan power_save=0
|
||||||
options b43 hwpctl=0
|
options b43 hwpctl=0
|
||||||
options ath6kl_core suspend_mode=1
|
options ath6kl_core suspend_mode=1
|
||||||
|
|
||||||
|
options stk1160 keep_buffers=1
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user