Files
wyze-firmware/SD_ROOT/wz_mini/etc/init.d/S01bind
T
gtxaspec 9ce6bbd92a New init system (#216)
* new init system

* update new init scripts

* update checksum

* fix broken audio promps with new init scripts

* fix debug/upgrade mode

* fix bonding and eth0 hw addr

* add checksum

* fix bonding setup

* add rtsp auth disable

* adjust network init scripts path

* recreated repo and re added cron scripts (#211)

* recreated repo and re added cron scripts

* rename cron script and move it to the right folder.

* Delete .vs directory

remove .vs directory

* add deubg message to bonding rc.d script

* add crontab variable to wz_mini.conf

* fix mp4write

* add syslog debug feature

* fix syslog init blocking

* fix syslog save function

* increase imp_helper rerun delay

* update init scripts

* fix bonding and usb-direct

* update checksum

* add netmon for bonding

* fix supervisor function

* update model detection

* fix debugging injection on T20 devices

Co-authored-by: sideup66 <47700565+sideup66@users.noreply.github.com>
2022-08-07 18:46:00 -07:00

42 líneas
970 B
Bash

#!/bin/sh
### BEGIN INIT INFO
# Provides:
# Short-Description: Bind mount system files.
# Description: Replace specific system files with our customized versions via bind mount
### END INIT INFO
. /opt/wz_mini/wz_mini.conf
case "$1" in
start)
echo "#####$(basename "$0")#####"
echo "Replace stock busybox"
mount --bind /opt/wz_mini/bin/busybox /bin/busybox
echo "Replace stock fstab"
mount --bind /opt/wz_mini/etc/fstab /etc/fstab
echo "Replace stock inittab"
mount --bind /opt/wz_mini/etc/inittab /etc/inittab
echo "Replace /etc/profile for local/ssh shells"
mount --bind /opt/wz_mini/etc/profile /etc/profile
if [ -d /lib/modules ]; then
echo "Mount kernel modules in /lib"
mount --bind /opt/wz_mini/lib/modules /lib/modules
fi
echo "Replace system hostname"
echo $CUSTOM_HOSTNAME > /opt/wz_mini/etc/hostname
mount --bind /opt/wz_mini/etc/hostname /etc/hostname
;;
*)
echo "Usage: $0 {start}"
exit 1
;;
esac