just some sketches mru
authorUlrich Dangel <uli@spamt.net>
Sun, 1 Nov 2009 15:48:09 +0000 (16:48 +0100)
committerUlrich Dangel <uli@spamt.net>
Sun, 1 Nov 2009 15:48:09 +0000 (16:48 +0100)
ideas/grml-core [new file with mode: 0644]
ideas/grml-shlib [new file with mode: 0644]
ideas/requirements.txt [new file with mode: 0644]

diff --git a/ideas/grml-core b/ideas/grml-core
new file mode 100644 (file)
index 0000000..8ba5e8d
--- /dev/null
@@ -0,0 +1,4 @@
+create package grml-core, containing core functionality for grml-scripts, grml-autoconfig
+
+Should contain boot parameter handling, detection of grml system, check if system is installed to hd.
+
diff --git a/ideas/grml-shlib b/ideas/grml-shlib
new file mode 100644 (file)
index 0000000..9e898cc
--- /dev/null
@@ -0,0 +1,39 @@
+Should depend on grml-core.
+
+Librarie for use in shell scripts, should handle syslog/parameter/debug stuff, common functions like check4root, should probably be a framework
+
+Example (just a sketch)
+
+grml-router.sh
+===========
+#!/bin/zsh
+
+NEED_ROOT=1
+RUN_INSTALLED=0
+CONFIG_FILE=/etc/grml/routersetup
+NEEDED_EXECUTABLE=/sbin/iptables
+
+
+main()
+{
+    . $CONFIG_FILE
+    if [ -z "$OUTDEV" ] ; then
+        eewarn "Outgoing device is not set in $CONFIG_FILE"
+        eewarn "Setting Outgoing device to auto"
+        OUTDEV=auto
+    fi
+
+    case "$OUTDEV" in
+        auto|default)
+        OUTDEV=$(defaultGWDev)
+        if [ -z "$OUTDEV" ] ; then
+            eerror "The outgoing device could not be determined."
+            eerror "Please adjust OUTDEV in $CONFIG_FILE"
+            exit 1
+        fi
+        ;;
+    esac
+    ....
+}
+
+. /usr/share/grml-shlib/shlib
diff --git a/ideas/requirements.txt b/ideas/requirements.txt
new file mode 100644 (file)
index 0000000..ae1c08a
--- /dev/null
@@ -0,0 +1,20 @@
+* grml-autoconfig
+* different grml-script having same problems (config file, check4root...)
+* tools for determing runtime information (kernel available)
+* common logging
+
+Proposed packages with no dependency
+====================
+grml-core     -  Common used grml specific solutions, probably merge with grml-api
+                    e.g. boot parameter handling (consider bootparam directory),
+                    determine current running version
+grml-etc-core -  _ONLY_ config files, NO grml/lsb-functions, no grml/script-functions
+grml-lsb      -  lsb stuff
+grml-api      -  Determine grml versions on boot media, available kernels/initrds
+                 incl. location in file system
+
+Package with dependencies
+===========================
+grml-shlib   -  Look&Feel, logging, common functions, e.g. modifyconfig, check4root...
+                Should it be a framework?
+                    * Probably as support for DISTRI should be included