Skip to content

Commit

Permalink
Update customize-image.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan6sha committed Oct 19, 2024
1 parent e046632 commit 62d3616
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions userpatches/customize-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ fxBloxCustomScriptService()
touch /root/.fxBlox_custom_script_service
cp /tmp/overlay/fxBlox_custom_script_service.sh /usr/bin/fxBlox_custom_script_service.sh
chmod +x /usr/bin/fxBlox_custom_script_service.sh
chmod 755 /usr/bin/fxBlox_custom_script_service.sh

touch /etc/systemd/system/fxBlox_custom_script_service.service

Expand All @@ -92,6 +93,7 @@ fxBloxCustomScriptService()
After=multi-user.target
[Service]
User=root
ExecStart=/bin/bash /usr/bin/fxBlox_custom_script_service.sh
Type=simple
Expand All @@ -106,9 +108,16 @@ InstallpythonPackages()
{
echo "Install python Packages"

pip install RPi.GPIO
pip install pexpect
pip install psutil
sudo apt-get install -y python3-pip
sudo apt-get install -y mergerfs
sudo apt-get install -y inotify-tools
sudo apt-get install -y python3-dbus
sudo apt-get install -y python3-rpi.gpio
sudo apt-get install -y python3-pexpect
sudo apt-get install -y python3-requests
sudo apt-get install -y python3-psutil
sudo apt-get install -y logrotate

} # InstallpythonPackages

InstallDocker()
Expand Down

0 comments on commit 62d3616

Please sign in to comment.