OSDN Git Service

add chroot publish
authorpaperbenni <paperbenni@gmail.com>
Mon, 28 Sep 2020 14:55:33 +0000 (16:55 +0200)
committerpaperbenni <paperbenni@gmail.com>
Mon, 28 Sep 2020 14:55:33 +0000 (16:55 +0200)
chroot/publish.sh [new file with mode: 0644]

diff --git a/chroot/publish.sh b/chroot/publish.sh
new file mode 100644 (file)
index 0000000..9836ada
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# make some iroot settings accessible by normal users
+
+mkdir /etc/iroot
+
+
+publishsetting() {
+    if iroot "$1"
+    then
+        iroot "$1" > /etc/iroot/"$1"
+    fi
+}
+
+publishsetting countrycode
+publishsetting isvm
+
+echo "finished setting up config permissions"