• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/gpsd/S50gpsd
Maxime HadjinlianMaxime Hadjinlian committed 0f75b2635ee03 Oct 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
#!/bin/sh
2
#
3
# Starts the gps daemon.
4
#
5
​
6
NAME=gpsd
7
DAEMON=/usr/sbin/$NAME
8
DEVICES=/dev/ttyS1
9
PIDFILE=/var/run/$NAME.pid
10
​
11
start() {
12
        printf "Starting $NAME: "
13
        start-stop-daemon -S -q -p $PIDFILE --exec $DAEMON -- -P $PIDFILE $DEVICES && echo "OK" || echo "Failed"
14
}
15
stop() {
16
        printf "Stopping $NAME: "
17
        start-stop-daemon -K -q -p $PIDFILE && echo "OK" || echo "Failed"
18
        rm -f $PIDFILE
19
}
20
restart() {
21
        stop
22
        start
23
}
24
​
25
case "$1" in
26
  start)
27
        start
28
        ;;
29
  stop)
30
        stop
31
        ;;
32
  restart|reload)
33
        restart
34
        ;;
35
  *)
36
        echo "Usage: $0 {start|stop|restart}"
37
        exit 1
38
esac
39
​
40
exit $?
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.