mirror of https://github.com/OpenIPC/firmware.git
Update ipctool and some cosmetic changes
parent
17bd0eaf88
commit
bede101da5
|
@ -23,7 +23,7 @@ start() {
|
||||||
load_goke -i
|
load_goke -i
|
||||||
#
|
#
|
||||||
printf 'Starting %s: ' "$DAEMON"
|
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
|
# shellcheck disable=SC2086 # we need the word splitting
|
||||||
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
|
||||||
|
@ -38,7 +38,7 @@ start() {
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
printf 'Stopping %s: ' "$DAEMON"
|
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"
|
start-stop-daemon -K -q -p "$PIDFILE"
|
||||||
status=$?
|
status=$?
|
||||||
if [ "$status" -eq 0 ]; then
|
if [ "$status" -eq 0 ]; then
|
||||||
|
|
|
@ -23,7 +23,7 @@ start() {
|
||||||
load_hisilicon -i
|
load_hisilicon -i
|
||||||
#
|
#
|
||||||
printf 'Starting %s: ' "$DAEMON"
|
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
|
# shellcheck disable=SC2086 # we need the word splitting
|
||||||
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
|
||||||
|
@ -38,7 +38,7 @@ start() {
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
printf 'Stopping %s: ' "$DAEMON"
|
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"
|
start-stop-daemon -K -q -p "$PIDFILE"
|
||||||
status=$?
|
status=$?
|
||||||
if [ "$status" -eq 0 ]; then
|
if [ "$status" -eq 0 ]; then
|
||||||
|
|
|
@ -23,7 +23,7 @@ start() {
|
||||||
load_hisilicon -i
|
load_hisilicon -i
|
||||||
#
|
#
|
||||||
printf 'Starting %s: ' "$DAEMON"
|
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
|
# shellcheck disable=SC2086 # we need the word splitting
|
||||||
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
|
||||||
|
@ -38,7 +38,7 @@ start() {
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
printf 'Stopping %s: ' "$DAEMON"
|
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"
|
start-stop-daemon -K -q -p "$PIDFILE"
|
||||||
status=$?
|
status=$?
|
||||||
if [ "$status" -eq 0 ]; then
|
if [ "$status" -eq 0 ]; then
|
||||||
|
|
|
@ -22,7 +22,7 @@ start() {
|
||||||
load_sigmastar -i
|
load_sigmastar -i
|
||||||
#
|
#
|
||||||
printf 'Starting %s: ' "$DAEMON"
|
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
|
# shellcheck disable=SC2086 # we need the word splitting
|
||||||
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
|
||||||
|
@ -37,7 +37,7 @@ start() {
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
printf 'Stopping %s: ' "$DAEMON"
|
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"
|
start-stop-daemon -K -q -p "$PIDFILE"
|
||||||
status=$?
|
status=$?
|
||||||
if [ "$status" -eq 0 ]; then
|
if [ "$status" -eq 0 ]; then
|
||||||
|
|
|
@ -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.
|
# and use "-m" to instruct start-stop-daemon to create one.
|
||||||
start() {
|
start() {
|
||||||
printf 'Starting %s: ' "$DAEMON"
|
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
|
# shellcheck disable=SC2086 # we need the word splitting
|
||||||
start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/sbin/$DAEMON" \
|
start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/sbin/$DAEMON" \
|
||||||
-- $SNMPD_ARGS
|
-- $SNMPD_ARGS
|
||||||
|
@ -27,7 +27,7 @@ start() {
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
printf 'Stopping %s: ' "$DAEMON"
|
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"
|
start-stop-daemon -K -q -p "$PIDFILE"
|
||||||
status=$?
|
status=$?
|
||||||
if [ "$status" -eq 0 ]; then
|
if [ "$status" -eq 0 ]; then
|
||||||
|
|
|
@ -8,15 +8,15 @@ TELNETD_ARGS="-F -p 4321 -l /bin/sh"
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
printf "Starting telnetd: "
|
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 \
|
start-stop-daemon -S -q -m -b -p /var/run/telnetd.pid \
|
||||||
-x /usr/sbin/telnetd -- $TELNETD_ARGS
|
-x /usr/sbin/telnetd -- $TELNETD_ARGS
|
||||||
[ $? = 0 ] && echo "OK (port 4321)" || echo "FAIL"
|
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
printf "Stopping telnetd: "
|
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 \
|
start-stop-daemon -K -q -p /var/run/telnetd.pid \
|
||||||
-x /usr/sbin/telnetd
|
-x /usr/sbin/telnetd
|
||||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||||
|
|
|
@ -42,6 +42,7 @@ clearing_overlayfs() {
|
||||||
|
|
||||||
quick_reboot() {
|
quick_reboot() {
|
||||||
echo -e "\n\e[1;31mRebooting without any questions...\e[0m\n"
|
echo -e "\n\e[1;31mRebooting without any questions...\e[0m\n"
|
||||||
|
sleep 1
|
||||||
reboot -f
|
reboot -f
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,6 +54,7 @@ if [ "$(curl -o /dev/null -s -w '%{http_code}\n' http://github.com)" != "301" ];
|
||||||
else
|
else
|
||||||
stop_services
|
stop_services
|
||||||
download_firmware && writing_kernel && writing_rootfs
|
download_firmware && writing_kernel && writing_rootfs
|
||||||
|
sleep 1
|
||||||
if [ "$1" = "-n" ]; then
|
if [ "$1" = "-n" ]; then
|
||||||
clearing_overlayfs
|
clearing_overlayfs
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -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_SITE = $(call github,openipc,ipctool,$(IPCTOOL_VERSION))
|
||||||
IPCTOOL_LICENSE = MIT
|
IPCTOOL_LICENSE = MIT
|
||||||
IPCTOOL_LICENSE_FILES = LICENSE
|
IPCTOOL_LICENSE_FILES = LICENSE
|
||||||
|
|
Loading…
Reference in New Issue