Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Alimustoofaa committed May 17, 2024
1 parent ab1106d commit edf50b3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ else
exit 1
fi

# 3. Create disable_uart.service
tee /etc/systemd/system/disable_uart.service > /dev/null <<EOF
# 3. Create enable_uart.service
tee /etc/systemd/system/enable_uart.service > /dev/null <<EOF
[Unit]
Description=Configure UART at startup
After=default.target
Expand All @@ -39,17 +39,17 @@ EOF

# Check if service file creation was successful
if [ $? -eq 0 ]; then
echo "disable_uart.service created successfully."
echo "enable_uart.service created successfully."
else
echo "Failed to create disable_uart.service. Exiting."
echo "Failed to create enable_uart.service. Exiting."
exit 1
fi

# Reload systemd to pick up changes
systemctl daemon-reload

# Enable the service
systemctl enable disable_uart.service
systemctl enable enable_uart.service

# Check if service was enabled successfully
if [ $? -eq 0 ]; then
Expand Down

0 comments on commit edf50b3

Please sign in to comment.