This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Remove old mount directory if it exists | |
sudo rm -f /etc/udev/rules.d/99-usb_automount.rules | |
# Define the path for the udev rule file | |
udev_rule_path="/etc/udev/rules.d/99-usb_automount.rules" | |
# Define the mount point | |
mount_point="/home/biqu/printer_data/gcodes/USB" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Backup | |
sudo cp /boot/dtb/rockchip/rk3328-roc-cc.dtb /boot/dtb/rockchip/rk3328-roc-cc.dtb.$(date +"%Y%m%d_%H%M%S").bak | |
# Unpack DTB file | |
sudo dtc -I dtb -O dts -o rk3328-roc-cc.dts /boot/dtb/rockchip/rk3328-roc-cc.dtb | |
# Make a copy to work with | |
sudo cp rk3328-roc-cc.dts rk3328-roc-cc-rotated.dts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello_world |