1 |
#!/bin/bash |
#!/bin/bash |
2 |
|
# $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/functions,v 1.3 2005-03-15 19:07:56 niro Exp $ |
3 |
|
|
4 |
# Begin $rc_base/init.d/functions - Run Level Control Functions |
# Begin $rc_base/init.d/functions - Run Level Control Functions |
5 |
|
|
6 |
# Based on functions script from LFS-3.1 and earlier. |
# Based on functions script from LFS-3.1 and earlier. |
50 |
|
|
51 |
# dummy function; needed if splashutils are not installed |
# dummy function; needed if splashutils are not installed |
52 |
splash() { |
splash() { |
53 |
return 0 |
return 0 |
54 |
} |
} |
55 |
|
|
56 |
|
|
108 |
then |
then |
109 |
#check if statedir exists |
#check if statedir exists |
110 |
[ ! -d ${svcdir}/started ] && mkdir ${svcdir}/started |
[ ! -d ${svcdir}/started ] && mkdir ${svcdir}/started |
111 |
|
|
112 |
#get real name of the initscript, not from the symlink |
#get real name of the initscript, not from the symlink |
113 |
if [ -L "$0" ] |
if [ -L "$0" ] |
114 |
then |
then |