• 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/busybox/S50telnet
Maxime HadjinlianMaxime Hadjinlian committed 0f75b2635ee03 Oct 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
#!/bin/sh
2
#
3
# Start telnet....
4
#
5
​
6
start() {
7
      printf "Starting telnetd: "
8
      start-stop-daemon -S -q -m -b -p /var/run/telnetd.pid \
9
            -x /usr/sbin/telnetd -- -F
10
      [ $? = 0 ] && echo "OK" || echo "FAIL"
11
}
12
​
13
stop() {
14
    printf "Stopping telnetd: "
15
    start-stop-daemon -K -q -p /var/run/telnetd.pid \
16
              -x /usr/sbin/telnetd
17
    [ $? = 0 ] && echo "OK" || echo "FAIL"
18
}
19
​
20
case "$1" in
21
    start)
22
    start
23
    ;;
24
    stop)
25
    stop
26
    ;;
27
    restart|reload)
28
    stop
29
    start
30
    ;;
31
  *)
32
    echo "Usage: $0 {start|stop|restart}"
33
    exit 1
34
esac
35
​
36
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.