OSDN Git Service
(root)
/
instantos
/
instantOS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71990fa
)
give option to disable autostart
author
paperbenni
<paperbenni@gmail.com>
Sun, 26 Jul 2020 20:04:32 +0000
(22:04 +0200)
committer
paperbenni
<paperbenni@gmail.com>
Sun, 26 Jul 2020 20:04:32 +0000
(22:04 +0200)
autostart.sh
patch
|
blob
|
history
diff --git
a/autostart.sh
b/autostart.sh
index
433642b
..
48f44d8
100755
(executable)
--- a/
autostart.sh
+++ b/
autostart.sh
@@
-16,6
+16,11
@@
if [ -z "$1" ]; then
export ISRASPI=true
fi
+ if iconf -i noautostart; then
+ echo "autostart disabled"
+ exit
+ fi
+
if [ "$(ps aux | grep bash | grep instantautostart | wc -l)" -gt 3 ]; then
echo "already running"
exit