commit ee3ed20191f370e547d6dcc0197df89cda4bf58c from: xs date: Wed Jun 11 23:17:59 2025 UTC Importer small update commit - 0198b57b7982bc5d06019344844f34d18ff7cb90 commit + ee3ed20191f370e547d6dcc0197df89cda4bf58c blob - ff703b5462b48a29ce68e1a316f888a0f2ece681 blob + b82cf2e11713408b913700dfd6c194ec9bf29184 --- r7 +++ r7 @@ -1252,6 +1252,27 @@ html() { # TODO: WIP import() { + echo >&2 "-> Importing target host: $target" + case $(ssh "$1" uname) in OpenBSD) _OpenBSD_import "$1" ;; *) + _error "Platform unsupported or host unavailable." + return 3 + ;; + esac +} + +_Debian_import() { + : +} + +_NetBSD_import() { + : +} + +_FreeBSD_import() { + : +} + +_OpenBSD_import() { cd "$R7_WORKDIR" || _fail "Unable to cd to '$R7_WORKDIR'" target=$1 etc_files_to_import=' @@ -1264,6 +1285,12 @@ import() { httpd.conf installurl login.conf + usermgt.conf + syslog.conf + newsyslog.conf + locate.rc + boot.conf + shells mygate myname ntpd.conf @@ -1295,12 +1322,6 @@ import() { data/postgresql.conf ' if test -n "$target"; then - echo >&2 "-> Importing target host: $target" - case $(ssh "$target" uname) in OpenBSD) : ;; *) - _error "Platform unsupported or host unavailable." - return 3 - ;; - esac _OpenBSD_import_ssh_authorized_keys _OpenBSD_import_etc_if_exists _OpenBSD_import_etc_ssh_if_exists