mirror of
https://gitlab.com/hacklab01/pivilion.git
synced 2026-02-04 07:40:48 +00:00
first Pivivlion config and scripts
This commit is contained in:
parent
e046535f8c
commit
1599a2b753
61 changed files with 7014 additions and 0 deletions
23
home/pi/config/rc.local.onion
Normal file
23
home/pi/config/rc.local.onion
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#!/bin/sh -e
|
||||
#
|
||||
# rc.local
|
||||
#
|
||||
# This script is executed at the end of each multiuser runlevel.
|
||||
# Make sure that the script will "exit 0" on success or any other
|
||||
# value on error.
|
||||
#
|
||||
# In order to enable or disable this script just change the execution
|
||||
# bits.
|
||||
#
|
||||
# By default this script does nothing.
|
||||
|
||||
# Print the IP address
|
||||
_IP=$(hostname -I) || true
|
||||
if [ "$_IP" ]; then
|
||||
printf "My IP address is %s\n" "$_IP"
|
||||
fi
|
||||
# Display onion domain in MOTD
|
||||
cat /var/lib/tor/hidden_service/hostname > /home/pi/torname
|
||||
exit 0
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue