#!/usr/bin/env jimsh
# dsc -- damn small configuration manager
# Copyright (C) 2025 Sergey Matveev <stargrave@stargrave.org>
+# 2025 Vladimir Bobrov
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
dsc export [prefix] >file.txtar -- export (whole by default) configuration
dsc import <file.txtar -- import it
dsc path opt -- get full path to option's value (if set)
+ dsc apply prefix -- apply configuration on given prefix
Environmental variables:
$DSC_SCHEMA -- path to the schema definition
+# Copyright (C) 2025 Sergey Matveev <stargrave@stargrave.org>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, version 3 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
proc list-sys-ifaces {} {
set ifaces [list]
foreach l [split [exec ip link] \n] {