Pullrequest for Luckfox Pico Pi (#246)
* sysdrv/source/kernel/arch/arm/boot/dts : Add Luckfox Pico Pi device tree files Signed-off-by: luckfox-eng29 <eng29@luckfox.com> * sysdrv/source/kernel/arch/arm/configs : Add Add kernel configuration file support for SIM7600G Signed-off-by: luckfox-eng29 <eng29@luckfox.com> * sysdrv/source/kernel/drivers/usb/serial : Add USB serial driver support for SIM7600G Signed-off-by: luckfox-eng29 <eng29@luckfox.com> * project/cfg/BoardConfig_IPC/overlay/overlay-luckfox-config/usr/bin/luckfox-config : Add support for Luckfox Pico Pi and comments Signed-off-by: luckfox-eng29 <eng29@luckfox.com> * project/cfg/BoardConfig_IPC : Add BoardConfig files and post script for Luckfox Pico Pi Signed-off-by: luckfox-eng29 <eng29@luckfox.com> * project/build.sh : Add the lunch menu item of Luckfox Pico Pi Signed-off-by: luckfox-eng29 <eng29@luckfox.com> * project/cfg/BoardConfig_IPC/overlay : Add SIM7600G overlay files Signed-off-by: luckfox-eng29 <eng29@luckfox.com> * sysdrv/source/kernel/drivers/media/i2c/sc3336.c : Set the SC3336 to use the 30fps mode by default Signed-off-by: luckfox-eng29 <eng29@luckfox.com> --------- Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
|
||||
# remove unused files
|
||||
function lf_rm() {
|
||||
for file in "$@"; do
|
||||
if [ -e "$file" ]; then
|
||||
echo "Deleting: $file"
|
||||
rm -rf "$file"
|
||||
#else
|
||||
#echo "File not found: $file"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
# remove unused links
|
||||
function lf_rm_link() {
|
||||
for link in "$@"; do
|
||||
if [ -L "$link" ]; then
|
||||
echo "Deleting: $link"
|
||||
rm -rf "$link"
|
||||
#else
|
||||
#echo "File not found: $file"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
# remove ModemManager Service
|
||||
function remove_modem_service() {
|
||||
lf_rm_link $RK_PROJECT_PACKAGE_ROOTFS_DIR/etc/systemd/system/dbus-org.freedesktop.ModemManager1.service
|
||||
lf_rm_link $RK_PROJECT_PACKAGE_ROOTFS_DIR/etc/systemd/system/multi-user.target.wants/ModemManager.service
|
||||
}
|
||||
|
||||
#=========================
|
||||
# run
|
||||
#=========================
|
||||
remove_modem_service
|
||||
Reference in New Issue
Block a user