OSDN Git Service
(root)
/
instantos
/
instantARCH.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a60a334
)
add chroot publish
author
paperbenni
<paperbenni@gmail.com>
Mon, 28 Sep 2020 14:55:33 +0000
(16:55 +0200)
committer
paperbenni
<paperbenni@gmail.com>
Mon, 28 Sep 2020 14:55:33 +0000
(16:55 +0200)
chroot/publish.sh
[new file with mode: 0644]
patch
|
blob
diff --git a/chroot/publish.sh
b/chroot/publish.sh
new file mode 100644
(file)
index 0000000..
9836ada
--- /dev/null
+++ b/
chroot/publish.sh
@@ -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"