Skip to content

Commit

Permalink
[arch] split disclaimer, fixes #64
Browse files Browse the repository at this point in the history
  • Loading branch information
rroohhh committed May 31, 2019
1 parent 67e945b commit 124218a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DISCLAIMER.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ liability for any loss or damage as a result of the use or misuse. USE AT YOUR
OWN RISK. You have root access to this system and can potentially brick and
damage the hardware from the command line interface - be responsible and when in
doubt consult with apertus° before doing anything potentially harmful to your
camera.
camera.
7 changes: 6 additions & 1 deletion makefiles/in_chroot/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ if [ -d overlay ]; then
fi
fi

# copy the full disclaimer to its place
DISCLAIMER_FILE=/etc/DISCLAIMER.txt
cp DISCLAIMER.txt $DISCLAIMER_FILE

# install /etc/issue generating service
cp software/configs/gen_etc_issue.service /etc/systemd/system/
systemctl enable gen_etc_issue.service
Expand All @@ -127,9 +131,10 @@ echo -e "\033[38;5;15m$(tput bold)$(figlet "AXIOM ${DEVICE^}") $(tput sgr0)" >
echo "Software version $(git describe --always --abbrev=8 --dirty). Last updated on $(date +"%d.%m.%y %H:%M UTC")" >> /etc/motd
echo "To update, run \"axiom-update\"." >> /etc/motd
echo "" >> /etc/motd
echo "$(tput setaf 1)$(cat DISCLAIMER.txt)$(tput sgr0)" >> /etc/motd
echo "$(tput setaf 1)This device and it's software is provided without warranty of merchantability or fitness for any particular purpose. Be careful when doing anything potentially harmful to your camera. See full disclaimer in $DISCLAIMER_FILE $(tput sgr0)" >> /etc/motd
echo "" >> /etc/motd

# generate fstab
echo "PARTUUID=f37043ff-02 / ext4 defaults,rw 0 0" > /etc/fstab
echo "PARTUUID=f37043ff-01 /boot vfat defaults,rw 0 0" >> /etc/fstab

Expand Down

0 comments on commit 124218a

Please sign in to comment.