Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
/boot rewrite mount, restart button
Browse files Browse the repository at this point in the history
  • Loading branch information
jonashoechst committed Feb 19, 2021
1 parent 54a082a commit 9b5422c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 0 additions & 3 deletions Base.Pifile
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ RUN chmod 644 /root/.ssh/authorized_keys
# Set Europe/Berlin timezone
RUN ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime

# add hdd mount to fstab
RUN bash -c 'echo "/dev/sda1 /data ext4 defaults,auto,nofail 0 0" >> /etc/fstab'

# set git config for possible local commits
RUN git config --global user.email "root@nature40-sensorbox"
RUN git config --global user.name "Nature 4.0 Sensorbox"
Expand Down
4 changes: 4 additions & 0 deletions Base/etc/fstab
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
proc /proc proc defaults 0 0
PARTUUID=8f4dbd00-01 /boot vfat defaults,user,umask=000 0 2
PARTUUID=8f4dbd00-02 / ext4 defaults,noatime 0 1
/dev/sda1 /data ext4 defaults,auto,nofail 0 0
2 changes: 2 additions & 0 deletions RadioTracking/etc/systemd/system/radiotracking.service
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ ExecStartPre=+/bin/bash -c "echo 0 > /sys/module/usbcore/parameters/usbfs_memory
ExecStart=/usr/bin/python3 -m radiotracking --config /boot/radiotracking.ini
Restart=always
RestartSec=10s
User=pi
Group=pi

[Install]
WantedBy=multi-user.target
Expand Down

0 comments on commit 9b5422c

Please sign in to comment.