mirror of
https://github.com/DrHo1y/orangepi-build.git
synced 2026-03-24 01:26:43 +07:00
Add burn_to_emmc
This commit is contained in:
@@ -623,6 +623,29 @@ FAMILY_TWEAKS
|
||||
install_rclocal()
|
||||
{
|
||||
|
||||
if [[ $BURN_IMAGE == yes ]]; then
|
||||
|
||||
cat <<-EOF > "${SDCARD}"/etc/rc.local
|
||||
#!/bin/sh -e
|
||||
#
|
||||
# rc.local
|
||||
#
|
||||
# This script is executed at the end of each multiuser runlevel.
|
||||
# Make sure that the script will "exit 0" on success or any other
|
||||
# value on error.
|
||||
#
|
||||
# In order to enable or disable this script just change the execution
|
||||
# bits.
|
||||
#
|
||||
# By default this script does nothing.
|
||||
|
||||
burn_to_emmc
|
||||
|
||||
exit 0
|
||||
EOF
|
||||
|
||||
else
|
||||
|
||||
cat <<-EOF > "${SDCARD}"/etc/rc.local
|
||||
#!/bin/sh -e
|
||||
#
|
||||
@@ -639,7 +662,9 @@ install_rclocal()
|
||||
|
||||
exit 0
|
||||
EOF
|
||||
chmod +x "${SDCARD}"/etc/rc.local
|
||||
|
||||
fi
|
||||
chmod +x "${SDCARD}"/etc/rc.local
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user