mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
Remove unnecessary execute flag from some init.d files
This commit is contained in:
parent
1edf7f0c62
commit
000eff13a3
3
board/common/overlay/etc/init.d/base
Executable file → Normal file
3
board/common/overlay/etc/init.d/base
Executable file → Normal file
@ -1,4 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
source /etc/version
|
||||
board_sn=$(/etc/init.d/boardsn)
|
||||
@ -40,7 +39,7 @@ prepare_conf() {
|
||||
|
||||
if [[ -n "$user_conf" && -e "$user_conf" ]]; then
|
||||
cp -rf "$user_conf" "$actual_conf"
|
||||
grep -E "/boot .*ro[\s,]" /proc/mounts
|
||||
grep -E "/boot .*ro[\s,]" /proc/mounts &>/dev/null
|
||||
RO=$?
|
||||
test $RO == 0 && mount -o remount,rw /boot
|
||||
rm -rf $user_conf
|
||||
|
@ -1,4 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
_sys_conf="/etc/os.conf"
|
||||
_boot_conf="/boot/os.conf"
|
||||
|
1
board/common/overlay/etc/init.d/panic
Executable file → Normal file
1
board/common/overlay/etc/init.d/panic
Executable file → Normal file
@ -1,4 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
_PANIC_COUNTER_FILE="/var/lib/panic_counter"
|
||||
_PANIC_REBOOT_DELAY_FACTOR=10
|
||||
|
Loading…
x
Reference in New Issue
Block a user