Skip to content

Commit

Permalink
fix customization script
Browse files Browse the repository at this point in the history
remove unused sudo
  • Loading branch information
rzrbld committed Nov 11, 2022
1 parent ed33373 commit 8181ff4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions armbian/banapi_m2_zero/userpatches/customize-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ InstallCDROMGadget(){
rm /root/.not_logged_in_yet
export LANG=C LC_ALL="en_US.UTF-8"
# install requred packcges
apt update -y -q && apt install -y -q sed git vim p7zip-full armbian-config python3-smbus python3-numpy python3-pil fonts-dejavu ntfs-3g python3-dev python3-pip zip unzip dosfstools
apt update -y -q && apt install -y -q sed git vim p7zip-full armbian-config python3-smbus python3-numpy python3-pil fonts-dejavu ntfs-3g python3-dev python3-pip zip unzip dosfstools && \

#make a file for wiringPi
mkdir /var/lib/bananapi/ && touch /var/lib/bananapi/board.sh
Expand Down Expand Up @@ -92,8 +92,8 @@ InstallCDROMGadget(){
sed -i '/g_ether/d' /etc/modules

# add cdrom_gadget to systemd
sudo ln -s /opt/gadget_cdrom/gadget_cdrom.service /etc/systemd/system/gadget_cdrom.service && \
sudo systemctl enable gadget_cdrom.service
ln -s /opt/gadget_cdrom/gadget_cdrom.service /etc/systemd/system/gadget_cdrom.service && \
systemctl enable gadget_cdrom.service

}

Expand Down

0 comments on commit 8181ff4

Please sign in to comment.