Add quotes to handle scripts and arguments with space in them.
Petter Reinholdtsen
10 years ago
0 | 0 | #!/bin/sh |
1 | 1 | # kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and sourcing. |
2 | 2 | if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then |
3 | set $0 $@; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script | |
3 | set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script | |
4 | 4 | fi |
5 | 5 | ### BEGIN INIT INFO |
6 | 6 | # Provides: skeleton |