kiss-stj

My KISS Linux repo for software I use on my computers.
git clone https://git.stjo.hn/kiss-stj
Log | Files | Refs | README | LICENSE

nldev (235B)


      1 #!/bin/sh
      2 
      3 PID=$(pidof -o %PPID nldev)
      4 
      5 case $1 in
      6 	-s)
      7 		if [ -z "$PID" ]; then
      8 		       run_nldev &
      9 		       nltrigger all
     10 		fi
     11 		;;
     12 	-k)
     13 		[ -n "$PID" ] && kill -9 $PID &> /dev/null;
     14 		;;
     15 	*)
     16 		echo "usage: $0 -s|-k"
     17 		exit 1
     18 esac
     19