forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
sandro
committed
Mar 3, 2024
1 parent
6f6d076
commit 94f5254
Showing
6 changed files
with
77 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 26 additions & 4 deletions
30
target/linux/rockchip/armv8/base-files/etc/init.d/fa-rk3328-pwmfan
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,30 @@ | ||
#!/bin/sh /etc/rc.common | ||
|
||
START=96 | ||
|
||
STOP=10 | ||
|
||
restart() { | ||
fan_pid=$(ps|grep start-rk3328-pwm-fan|grep -v grep|awk '{print $1}') | ||
kill ${fan_pid} | ||
sleep 1 # give time to shutdown | ||
/usr/bin/start-rk3328-pwm-fan.sh > /dev/null& | ||
} | ||
|
||
start() { | ||
echo "fa-pwmfan started" | ||
/usr/bin/start-rk3328-pwm-fan.sh > /dev/null& | ||
fan_pid=$(ps|grep start-rk3328-pwm-fan|grep -v grep|awk '{print $1}') | ||
if [ -z "${fan_pid}" ] | ||
then | ||
echo "PWM fan is started" | ||
/usr/bin/start-rk3328-pwm-fan.sh > /dev/null& | ||
else | ||
echo "PWM fan is already running" | ||
fi | ||
} | ||
|
||
stop() { | ||
fan_pid=$(ps|grep start-rk3328-pwm-fan|grep -v grep|awk '{print $1}') | ||
if [ -n "${fan_pid}" ] | ||
then | ||
kill ${fan_pid} | ||
fi | ||
return 0 | ||
} |
29 changes: 26 additions & 3 deletions
29
target/linux/rockchip/armv8/base-files/etc/init.d/uqmi-daemon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,31 @@ | ||
#!/bin/sh /etc/rc.common | ||
START=99 | ||
STOP=10 | ||
|
||
START=97 | ||
|
||
restart() { | ||
uqmi_pid=$(ps|grep uqmi-daemon.sh|grep -v grep|awk '{print $1}') | ||
kill ${uqmi_pid} | ||
sleep 1 # give time to shutdown | ||
/usr/bin/uqmi-daemon.sh & | ||
} | ||
|
||
start() { | ||
echo "uqmi daemon is started" | ||
/usr/bin/uqmi-daemon.sh & | ||
uqmi_pid=$(ps|grep uqmi-daemon.sh|grep -v grep|awk '{print $1}') | ||
if [ -z "${uqmi_pid}" ] | ||
then | ||
echo "UQMI daemon is started" | ||
/usr/bin/uqmi-daemon.sh & | ||
else | ||
echo "UQMI daemon is already running" | ||
fi | ||
} | ||
|
||
stop() { | ||
uqmi_pid=$(ps|grep uqmi-daemon.sh|grep -v grep|awk '{print $1}') | ||
if [ -n "${uqmi_pid}" ] | ||
then | ||
kill ${uqmi_pid} | ||
fi | ||
return 0 | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters