Commit b03517eb authored by Bernd Paysan's avatar Bernd Paysan

Keep old config if it's there, no need to migrate it

parent f53532fc
......@@ -54,12 +54,12 @@ Variable host$
config:host$ $@ host$ $!
ELSE
config:host$ $free host$ $@ config:orighost$ $!
[IFDEF] android 20 [ELSE] 10 [THEN] \ mobile has lower prio
config:prio# !
THEN ;
: default-host ( -- )
get-host$ skip.site replace-host
[IFDEF] android 20 [ELSE] 10 [THEN] \ mobile has lower prio
config:prio# ! ;
get-host$ skip.site replace-host ;
Create ip6::0 here 16 dup allot erase
: .ip6::0 ( -- ) ip6::0 $10 type ;
......
......@@ -446,14 +446,14 @@ Variable configured?
forward default-host
: ?old-config ( addr u wid -- )
\G move from legacy config to ~/.config and ~/.cache
\G check if we have an old config; then keep it.
"~/.net2o/config" file-status nip no-file# <> IF
"~/.net2o" .net2o$ $!
"~/.net2o/config" .net2o-config$ $!
subdir-config
read-config
ELSE
?.net2o write-config
?.net2o default-host write-config
THEN ;
: ?.net2o-config ( -- ) true configured? !@ ?EXIT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment