Skip to content
Snippets Groups Projects
Commit afc8c7ad authored by Roland's avatar Roland
Browse files

not stopping haveget in config mode

parent ec320217
No related branches found
No related tags found
No related merge requests found
...@@ -8,10 +8,9 @@ if [ $RAMSIZE -le 40000 ] ; then ...@@ -8,10 +8,9 @@ if [ $RAMSIZE -le 40000 ] ; then
MODE=`uci get gluon-setup-mode.@setup_mode[0].enabled` MODE=`uci get gluon-setup-mode.@setup_mode[0].enabled`
if [ $MODE == "1" ] ; then if [ $MODE == "1" ] ; then
/etc/init.d/haveged start /etc/init.d/haveged start
fi
# disable and stop haveged if enabled # disable and stop haveged if enabled
if [ -f /etc/rc.d/S13haveged ] ; then elif [ -f /etc/rc.d/S13haveged ] ; then
/etc/init.d/haveged disable /etc/init.d/haveged disable
/etc/init.d/haveged stop /etc/init.d/haveged stop
fi fi
...@@ -32,4 +31,3 @@ if [ $RAMSIZE -le 40000 ] ; then ...@@ -32,4 +31,3 @@ if [ $RAMSIZE -le 40000 ] ; then
/sbin/sysctl -w vm.dirty_ratio=30 /sbin/sysctl -w vm.dirty_ratio=30
/sbin/sysctl -w vm.dirty_expire_centisecs=0 /sbin/sysctl -w vm.dirty_expire_centisecs=0
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment