Merge pull request #89 from noon92/osc

Update foxbunto_env_setup.sh
This commit is contained in:
Ruledo 2024-12-27 21:37:24 -08:00 • committed by GitHub
commit d10fbccc30
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -133,6 +133,19 @@ modify_chroot() {
create_image
}
update_image() {
#we still need the chroot scripts function but this will work for now.
echo "Updating repo..."
cd /home/${sudoer}/femtofox
git pull
cd /home/${sudoer}/
copy_femtofox_kernelcfg
build_kernelconfig
build_rootfs
build_firmware
create_image
}
modify_rootfs() {
echo "Modifying rootfs..."
cd /home/${sudoer}/luckfox-pico/output/image
@ -289,6 +302,8 @@ elif [[ ${1} == "modify_chroot" ]]; then
modify_chroot
elif [[ ${1} == "modify_kernel" ]]; then
modify_kernel
elif [[ ${1} == "update_image" ]]; then
update_image
elif [[ ${1} == "install" ]]; then
{ echo 'Defaults timestamp_timeout=180' | sudo EDITOR='tee -a' visudo; } > /dev/null 2>&1
start_time=$(date +%s)