developer | bc62736 | 2023-08-08 16:05:33 +0800 | [diff] [blame] | 1 | #!/bin/sh /etc/rc.common |
| 2 | |
developer | 8a38fa6 | 2023-09-04 09:16:22 +0800 | [diff] [blame] | 3 | #the priority of TOPS driver is 51 |
| 4 | START=52 |
developer | bc62736 | 2023-08-08 16:05:33 +0800 | [diff] [blame] | 5 | |
| 6 | USE_PROCD=1 |
| 7 | NAME=tops-tool |
| 8 | PROG=/usr/sbin/tops-tool |
| 9 | |
| 10 | start_service() { |
developer | cf2244f | 2023-09-11 11:05:46 +0800 | [diff] [blame^] | 11 | for script in /etc/init.d/tops-tool*; do |
| 12 | if [[ -f "$script" && -x "$script" ]]; then |
| 13 | source "$script" |
| 14 | fi |
| 15 | done |
developer | bc62736 | 2023-08-08 16:05:33 +0800 | [diff] [blame] | 16 | } |
| 17 | |
| 18 | stop_service() { |
| 19 | service_stop "${PROG}" |
| 20 | } |