mirror of https://github.com/OpenIPC/firmware.git
				
				
				
			fix format
							parent
							
								
									ae77282d05
								
							
						
					
					
						commit
						91ed49b910
					
				|  | @ -12,9 +12,9 @@ load_majestic() { | ||||||
| 	printf 'Starting %s: ' "$DAEMON" | 	printf 'Starting %s: ' "$DAEMON" | ||||||
| 	[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, " | 	[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, " | ||||||
| 	# shellcheck disable=SC2086 # we need the word splitting | 	# shellcheck disable=SC2086 # we need the word splitting | ||||||
|         if [ $(grep ^savedumps /etc/coredump.config | cut -d= -f2) == "true" ]; then |     if [ $(grep ^savedumps /etc/coredump.config | cut -d= -f2) == "true" ]; then | ||||||
|             ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern |         ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern | ||||||
|         fi |     fi | ||||||
| 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | ||||||
| 		-- $DAEMON_ARGS | 		-- $DAEMON_ARGS | ||||||
| 	status=$? | 	status=$? | ||||||
|  |  | ||||||
|  | @ -12,9 +12,9 @@ load_majestic() { | ||||||
| 	printf 'Starting %s: ' "$DAEMON" | 	printf 'Starting %s: ' "$DAEMON" | ||||||
| 	[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, " | 	[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, " | ||||||
| 	# shellcheck disable=SC2086 # we need the word splitting | 	# shellcheck disable=SC2086 # we need the word splitting | ||||||
|         if [ $(grep ^savedumps /etc/coredump.config | cut -d= -f2) == "true" ]; then |     if [ $(grep ^savedumps /etc/coredump.config | cut -d= -f2) == "true" ]; then | ||||||
|             ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern |         ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern | ||||||
|         fi |     fi | ||||||
| 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | ||||||
| 		-- $DAEMON_ARGS | 		-- $DAEMON_ARGS | ||||||
| 	status=$? | 	status=$? | ||||||
|  |  | ||||||
|  | @ -12,9 +12,9 @@ load_majestic() { | ||||||
| 	printf 'Starting %s: ' "$DAEMON" | 	printf 'Starting %s: ' "$DAEMON" | ||||||
| 	[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, " | 	[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, " | ||||||
| 	# shellcheck disable=SC2086 # we need the word splitting | 	# shellcheck disable=SC2086 # we need the word splitting | ||||||
|         if [ $(grep ^savedumps /etc/coredump.config | cut -d= -f2) == "true" ]; then |     if [ $(grep ^savedumps /etc/coredump.config | cut -d= -f2) == "true" ]; then | ||||||
|             ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern |         ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern | ||||||
|         fi |     fi | ||||||
| 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | ||||||
| 		-- $DAEMON_ARGS | 		-- $DAEMON_ARGS | ||||||
| 	status=$? | 	status=$? | ||||||
|  |  | ||||||
|  | @ -12,9 +12,9 @@ load_majestic() { | ||||||
| 	printf 'Starting %s: ' "$DAEMON" | 	printf 'Starting %s: ' "$DAEMON" | ||||||
| 	[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, " | 	[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, " | ||||||
| 	# shellcheck disable=SC2086 # we need the word splitting | 	# shellcheck disable=SC2086 # we need the word splitting | ||||||
|         if [ $(grep ^savedumps /etc/coredump.config | cut -d= -f2) == "true" ]; then |     if [ $(grep ^savedumps /etc/coredump.config | cut -d= -f2) == "true" ]; then | ||||||
|             ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern |         ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern | ||||||
|         fi |     fi | ||||||
| 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | ||||||
| 		-- $DAEMON_ARGS | 		-- $DAEMON_ARGS | ||||||
| 	status=$? | 	status=$? | ||||||
|  |  | ||||||
|  | @ -12,9 +12,9 @@ load_majestic() { | ||||||
| 	printf 'Starting %s: ' "$DAEMON" | 	printf 'Starting %s: ' "$DAEMON" | ||||||
| 	[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, " | 	[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, " | ||||||
| 	# shellcheck disable=SC2086 # we need the word splitting | 	# shellcheck disable=SC2086 # we need the word splitting | ||||||
|         if [ $(grep ^savedumps /etc/coredump.config | cut -d= -f2) == "true" ]; then |     if [ $(grep ^savedumps /etc/coredump.config | cut -d= -f2) == "true" ]; then | ||||||
|             ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern |         ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern | ||||||
|         fi |     fi | ||||||
| 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | ||||||
| 		-- $DAEMON_ARGS | 		-- $DAEMON_ARGS | ||||||
| 	status=$? | 	status=$? | ||||||
|  |  | ||||||
|  | @ -12,9 +12,9 @@ load_majestic() { | ||||||
| 	printf 'Starting %s: ' "$DAEMON" | 	printf 'Starting %s: ' "$DAEMON" | ||||||
| 	[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, " | 	[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, " | ||||||
| 	# shellcheck disable=SC2086 # we need the word splitting | 	# shellcheck disable=SC2086 # we need the word splitting | ||||||
|         if [ $(grep ^savedumps /etc/coredump.config | cut -d= -f2) == "true" ]; then |     if [ $(grep ^savedumps /etc/coredump.config | cut -d= -f2) == "true" ]; then | ||||||
|             ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern |         ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern | ||||||
|         fi |     fi | ||||||
| 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | ||||||
| 		-- $DAEMON_ARGS | 		-- $DAEMON_ARGS | ||||||
| 	status=$? | 	status=$? | ||||||
|  |  | ||||||
|  | @ -12,9 +12,9 @@ load_majestic() { | ||||||
| 	printf 'Starting %s: ' "$DAEMON" | 	printf 'Starting %s: ' "$DAEMON" | ||||||
| 	[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, " | 	[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, " | ||||||
| 	# shellcheck disable=SC2086 # we need the word splitting | 	# shellcheck disable=SC2086 # we need the word splitting | ||||||
|         if [ $(grep ^savedumps /etc/coredump.config | cut -d= -f2) == "true" ]; then |     if [ $(grep ^savedumps /etc/coredump.config | cut -d= -f2) == "true" ]; then | ||||||
|             ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern |         ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern | ||||||
|         fi |     fi | ||||||
| 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | ||||||
| 		-- $DAEMON_ARGS | 		-- $DAEMON_ARGS | ||||||
| 	status=$? | 	status=$? | ||||||
|  |  | ||||||
|  | @ -12,9 +12,9 @@ load_majestic() { | ||||||
| 	printf 'Starting %s: ' "$DAEMON" | 	printf 'Starting %s: ' "$DAEMON" | ||||||
| 	[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, " | 	[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, " | ||||||
| 	# shellcheck disable=SC2086 # we need the word splitting | 	# shellcheck disable=SC2086 # we need the word splitting | ||||||
|         if [ $(grep ^savedumps /etc/coredump.config | cut -d= -f2) == "true" ]; then |     if [ $(grep ^savedumps /etc/coredump.config | cut -d= -f2) == "true" ]; then | ||||||
|             ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern |         ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern | ||||||
|         fi |     fi | ||||||
| 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | ||||||
| 		-- $DAEMON_ARGS | 		-- $DAEMON_ARGS | ||||||
| 	status=$? | 	status=$? | ||||||
|  |  | ||||||
|  | @ -12,9 +12,9 @@ load_majestic() { | ||||||
| 	printf 'Starting %s: ' "$DAEMON" | 	printf 'Starting %s: ' "$DAEMON" | ||||||
| 	[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, " | 	[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, " | ||||||
| 	# shellcheck disable=SC2086 # we need the word splitting | 	# shellcheck disable=SC2086 # we need the word splitting | ||||||
|         if [ $(grep ^savedumps /etc/coredump.config | cut -d= -f2) == "true" ]; then |     if [ $(grep ^savedumps /etc/coredump.config | cut -d= -f2) == "true" ]; then | ||||||
|             ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern |         ulimit -c unlimited && echo "| /usr/sbin/sendcoredump.sh" > /proc/sys/kernel/core_pattern | ||||||
|         fi |     fi | ||||||
| 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \ | ||||||
| 		-- $DAEMON_ARGS | 		-- $DAEMON_ARGS | ||||||
| 	status=$? | 	status=$? | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue