dot

packages and services management
Log | Files | Refs | README

commit 8e4fce819a27096258b7cb986d3f910f743c71b5
parent c9ec559474a38ff4b93a0cc4f673db1313aee810
Author: Josuah Demangeon <mail@josuah.net>
Date:   Tue, 13 Feb 2018 09:50:05 +0100

[fix] tinc-up: also fix Linux

Diffstat:
Metc/agenda/epitech | 18------------------
Metc/tinc/tinc-up | 4++--
2 files changed, 2 insertions(+), 20 deletions(-)

diff --git a/etc/agenda/epitech b/etc/agenda/epitech @@ -25,15 +25,6 @@ D:Event D:Open House 6 D:Espace accueil : -B:1515830400 -E:1515862800 -S:G-EPI-004 >> Exhibition -C:Event -L: -D:Event -D:Exhibition -D:Extérieur -: B:1516867200 E:1516899600 S:G-EPI-004 >> Exhibition @@ -133,15 +124,6 @@ D:Event D:Fairs D:Extérieur : -B:1515828600 -E:1515843000 -S:G-EPI-004 >> Fairs -C:Event -L: -D:Event -D:Fairs -D:Extérieur -: B:1518699600 E:1518714000 S:G-EPI-004 >> Fairs diff --git a/etc/tinc/tinc-up b/etc/tinc/tinc-up @@ -2,10 +2,10 @@ case "$(uname)" in (*BSD) - ifconfig "${INTERFACE}" "${NAME}" netmask 255.255.255.0 + ifconfig "${INTERFACE}" "$(tinc get subnet)" netmask 255.255.255.0 ;; (Linux) ip link set "${INTERFACE}" up - ip addr add "${SUBNET}/24" dev "${INTERFACE}" + ip addr add "$(tinc get subnet)/24" dev "${INTERFACE}" ;; esac