Skip to content

Commit

Permalink
innocent SBC fun
Browse files Browse the repository at this point in the history
  • Loading branch information
rusefillc committed Apr 27, 2021
1 parent 742ea83 commit b42fd70
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
12 changes: 12 additions & 0 deletions java_console/bin/etc/systemd/system/rusefi.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#
# sudo systemctl enable rusefi
#

[Unit]
Description=rusEFI systemd

[Service]
ExecStart=/rw/startup_root.sh

[Install]
WantedBy=multi-user.target
7 changes: 7 additions & 0 deletions java_console/bin/rw/startup_root.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

cd /rw
date >> startup.log
whoami >> startup.log

sudo su - pi /rw/startup_user.sh
4 changes: 4 additions & 0 deletions java_console/bin/rw/startup_user.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
cd /rw
echo Hello User
whoami >> startup.log

0 comments on commit b42fd70

Please sign in to comment.