Mercurial > vanilla
comparison core/rc/rc.start @ 629:dbd752e285f6
core/rc: stay POSIX and support busybox
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 23 Jul 2019 22:56:00 +0200 |
parents | ddb052f876cd |
children |
comparison
equal
deleted
inserted
replaced
628:9a02e6680708 | 629:dbd752e285f6 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 # | 2 # |
3 # /etc/rc.start: runlevel control script | 3 # /etc/rc.start -- runlevel control script |
4 # | 4 # |
5 # Copyright (c) 2019 David Demelier <markand@malikania.fr> | 5 # Copyright (c) 2019 David Demelier <markand@malikania.fr> |
6 # | 6 # |
7 # Permission to use, copy, modify, and/or distribute this software for any | 7 # Permission to use, copy, modify, and/or distribute this software for any |
8 # purpose with or without fee is hereby granted, provided that the above | 8 # purpose with or without fee is hereby granted, provided that the above |
21 echo "usage: $0 runlevel" 1>&2 | 21 echo "usage: $0 runlevel" 1>&2 |
22 exit 1 | 22 exit 1 |
23 fi | 23 fi |
24 | 24 |
25 if [ -f /etc/rc.conf ]; then | 25 if [ -f /etc/rc.conf ]; then |
26 source /etc/rc.conf | 26 . /etc/rc.conf |
27 fi | 27 fi |
28 | 28 |
29 # Start user services requested in rc.conf(5). | 29 # Start user services requested in rc.conf(5). |
30 for s in $SERVICES; do | 30 for s in $SERVICES; do |
31 # | 31 # |