ncftp: bump version to 3.2.6
[buildroot-gz.git] / package / targetcli-fb / S50target
blob3ce55ab49289cb56f164f79765d631a0858be667
1 #!/bin/sh
3 # Restore / clear the Linux "SCSI target" driver configuration with `targetctl`
6 start() {
7 local ret
9 printf "Restoring target configuration: "
10 /usr/bin/targetctl restore >/dev/null 2>&1
11 ret=$?
12 echo "done"
14 return $ret
17 stop() {
18 local ret
20 printf "Clearing target configuration: "
21 /usr/bin/targetctl clear >/dev/null 2>&1
22 ret=$?
23 echo "done"
25 return $ret
28 restart() {
29 stop
30 start
33 case "$1" in
34 start)
35 start
37 stop)
38 stop
40 restart)
41 restart
44 echo "Usage: $0 {start|stop|restart}"
45 exit 1
46 esac