dot

packages and services management
Log | Files | Refs | README

commit 75d2f7f54edcab77399506657c608cdb79f6db51
parent b60491a8b654f49b2212d61d6abf8fd06cbf394e
Author: Josuah Demangeon <mail@josuah.net>
Date:   Thu,  1 Feb 2018 11:09:41 +0100

tell me when I am root

Diffstat:
Mdot/profile | 2+-
Mskel/tinc/tinc-up | 6++++--
2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/dot/profile b/dot/profile @@ -52,4 +52,4 @@ pgrep -x ssh-agent || { export PS1='$([ "${?}" -gt 0 ] && printf "\033[31;1mx\033[m\n\r")' export PS1="${PS1}$(printf '\033]0;%s\a' '${PWD} $(git-status)') -${SSH_TTY:+$(uname -n)}$ " +${SSH_TTY:+$(uname -n)}$([ "$(whoami)" = 'root' ] && printf '#' || printf '$') " diff --git a/skel/tinc/tinc-up b/skel/tinc/tinc-up @@ -4,7 +4,9 @@ #ifconfig "${INTERFACE}" 172.16.65.1 netmask 255.255.255.0 # nas -#ip route add 172.16.65.2/24 dev "${INTERFACE}" +#ip link set "${INTERFACE}" up +#ip addr add 172.16.65.2/24 dev "${INTERFACE}" # rpi -#ip route add 172.16.65.3/24 dev "${INTERFACE}" +#ip link set "${INTERFACE}" up +#ip addr add 172.16.65.3/24 dev "${INTERFACE}"