source: bootscripts-embedded/clfs/rc.d/init.d/netplugd

Last change on this file was 382b548, checked in by Andrew Bradford <andrew@…>, 7 years ago

netplugd: Create start/stop script

  • Property mode set to 100755
File size: 308 bytes
Line 
1#!/bin/ash
2
3# Netplugd Startup Script
4
5. /etc/rc.d/init.d/functions
6
7case "$1" in
8start)
9 echo -n "Starting netplugd: "
10 netplugd
11 check_status
12 ;;
13stop)
14 echo -n "Stopping netplugd: "
15 killall netplugd
16 check_status
17 ;;
18restart)
19 $0 stop
20 $0 start
21 ;;
22*)
23 echo "Usage: $0 {start|stop|restart}"
24 exit 1
25esac
Note: See TracBrowser for help on using the repository browser.