Update ipctool and some cosmetic changes

pull/55/head
Igor Zalatov (from Citadel PC) 2021-09-09 11:10:51 +03:00
parent 17bd0eaf88
commit bede101da5
8 changed files with 17 additions and 15 deletions

View File

@ -23,7 +23,7 @@ start() {
load_goke -i
#
printf 'Starting %s: ' "$DAEMON"
[ -f /usr/bin/$DAEMON ] || (echo "DISABLED" ; exit 1)
[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, "
# shellcheck disable=SC2086 # we need the word splitting
start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \
-- $DAEMON_ARGS
@ -38,7 +38,7 @@ start() {
stop() {
printf 'Stopping %s: ' "$DAEMON"
[ -f /usr/bin/$DAEMON ] || (echo "DISABLED" ; exit 1)
[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, "
start-stop-daemon -K -q -p "$PIDFILE"
status=$?
if [ "$status" -eq 0 ]; then

View File

@ -23,7 +23,7 @@ start() {
load_hisilicon -i
#
printf 'Starting %s: ' "$DAEMON"
[ -f /usr/bin/$DAEMON ] || (echo "DISABLED" ; exit 1)
[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, "
# shellcheck disable=SC2086 # we need the word splitting
start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \
-- $DAEMON_ARGS
@ -38,7 +38,7 @@ start() {
stop() {
printf 'Stopping %s: ' "$DAEMON"
[ -f /usr/bin/$DAEMON ] || (echo "DISABLED" ; exit 1)
[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, "
start-stop-daemon -K -q -p "$PIDFILE"
status=$?
if [ "$status" -eq 0 ]; then

View File

@ -23,7 +23,7 @@ start() {
load_hisilicon -i
#
printf 'Starting %s: ' "$DAEMON"
[ -f /usr/bin/$DAEMON ] || (echo "DISABLED" ; exit 1)
[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, "
# shellcheck disable=SC2086 # we need the word splitting
start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \
-- $DAEMON_ARGS
@ -38,7 +38,7 @@ start() {
stop() {
printf 'Stopping %s: ' "$DAEMON"
[ -f /usr/sbin/$DAEMON ] || (echo "DISABLED" ; exit 1)
[ -f /usr/sbin/$DAEMON ] || echo -en "DISABLED, "
start-stop-daemon -K -q -p "$PIDFILE"
status=$?
if [ "$status" -eq 0 ]; then

View File

@ -22,7 +22,7 @@ start() {
load_sigmastar -i
#
printf 'Starting %s: ' "$DAEMON"
[ -f /usr/bin/$DAEMON ] || (echo "DISABLED" ; exit 1)
[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, "
# shellcheck disable=SC2086 # we need the word splitting
start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \
-- $DAEMON_ARGS
@ -37,7 +37,7 @@ start() {
stop() {
printf 'Stopping %s: ' "$DAEMON"
[ -f /usr/bin/$DAEMON ] || (echo "DISABLED" ; exit 1)
[ -f /usr/bin/$DAEMON ] || echo -en "DISABLED, "
start-stop-daemon -K -q -p "$PIDFILE"
status=$?
if [ "$status" -eq 0 ]; then

View File

@ -12,7 +12,7 @@ SNMPD_ARGS="-n -4 -c openipc -i eth0 -D OpenIPC -C https://openipc.org -L Intern
# and use "-m" to instruct start-stop-daemon to create one.
start() {
printf 'Starting %s: ' "$DAEMON"
[ -f /usr/sbin/$DAEMON ] || (echo "DISABLED" ; exit 1)
[ -f /usr/sbin/$DAEMON ] || echo -en "DISABLED, "
# shellcheck disable=SC2086 # we need the word splitting
start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/sbin/$DAEMON" \
-- $SNMPD_ARGS
@ -27,7 +27,7 @@ start() {
stop() {
printf 'Stopping %s: ' "$DAEMON"
[ -f /usr/sbin/$DAEMON ] || (echo "DISABLED" ; exit 1)
[ -f /usr/sbin/$DAEMON ] || echo -en "DISABLED, "
start-stop-daemon -K -q -p "$PIDFILE"
status=$?
if [ "$status" -eq 0 ]; then

View File

@ -8,15 +8,15 @@ TELNETD_ARGS="-F -p 4321 -l /bin/sh"
start() {
printf "Starting telnetd: "
[ -f /usr/sbin/telnetd ] || (echo "DISABLED" ; exit 1)
[ -f /usr/sbin/telnetd ] || echo -en "DISABLED, "
start-stop-daemon -S -q -m -b -p /var/run/telnetd.pid \
-x /usr/sbin/telnetd -- $TELNETD_ARGS
[ $? = 0 ] && echo "OK (port 4321)" || echo "FAIL"
[ $? = 0 ] && echo "OK" || echo "FAIL"
}
stop() {
printf "Stopping telnetd: "
[ -f /usr/sbin/telnetd ] || (echo "DISABLED" ; exit 1)
[ -f /usr/sbin/telnetd ] || echo -en "DISABLED, "
start-stop-daemon -K -q -p /var/run/telnetd.pid \
-x /usr/sbin/telnetd
[ $? = 0 ] && echo "OK" || echo "FAIL"

View File

@ -42,6 +42,7 @@ clearing_overlayfs() {
quick_reboot() {
echo -e "\n\e[1;31mRebooting without any questions...\e[0m\n"
sleep 1
reboot -f
}
@ -53,6 +54,7 @@ if [ "$(curl -o /dev/null -s -w '%{http_code}\n' http://github.com)" != "301" ];
else
stop_services
download_firmware && writing_kernel && writing_rootfs
sleep 1
if [ "$1" = "-n" ]; then
clearing_overlayfs
fi

View File

@ -1,10 +1,10 @@
################################################################################
#
# ipctool | updated 2021.09.02
# ipctool | updated 2021.09.09
#
################################################################################
IPCTOOL_VERSION = cfa2c8329419a695e055f2e22d1c37ccd5daa80f
IPCTOOL_VERSION = 5c79eb04a3b240fa3b061bad3651d1a18c9ae30e
IPCTOOL_SITE = $(call github,openipc,ipctool,$(IPCTOOL_VERSION))
IPCTOOL_LICENSE = MIT
IPCTOOL_LICENSE_FILES = LICENSE