summaryrefslogtreecommitdiffstats
path: root/ftp.replicant.us_stage2.scm
diff options
context:
space:
mode:
Diffstat (limited to 'ftp.replicant.us_stage2.scm')
-rw-r--r--ftp.replicant.us_stage2.scm8
1 files changed, 5 insertions, 3 deletions
diff --git a/ftp.replicant.us_stage2.scm b/ftp.replicant.us_stage2.scm
index 9c408e9..b93aba1 100644
--- a/ftp.replicant.us_stage2.scm
+++ b/ftp.replicant.us_stage2.scm
@@ -15,11 +15,13 @@
(define %ipv4-interface-gateway "192.168.10.1")
(define %ipv4-interface-dns1 "192.168.10.1")
(define %ipv4-interface-dns2 "192.168.10.1")
+(define %ipv6-interface-address "2001:910:1314:ffff:ffff::43/80")
+(define %ipv6-interface-gateway "2001:910:1314:ffff:ffff::1")
;; Hack to Add IPv6 support
-(system "ip addr add 2001:910:1314:ffff:ffff::43/80 dev eth0 || true")
-(system "ip route add default via 2001:910:1314:ffff:ffff::1 || true")
-
+(define %ip-prog "/run/current-system/profile/sbin/ip")
+(system* %ip-prog "addr" "add" %ipv6-interface-address "dev" %ethernet-interface-name)
+(system* %ip-prog "route" "add" "default" "via" %ipv6-interface-gateway)
(define %nginx-deploy-hook
(program-file