9 |
|
|
10 |
# prefer mdev if it is present, always fall back to udev |
# prefer mdev if it is present, always fall back to udev |
11 |
# these settings can be overriden via /etc/conf.d/kernel |
# these settings can be overriden via /etc/conf.d/kernel |
12 |
if [[ -z ${RC_DEVMANAGER} ]] |
if [[ -z ${RC_DEVICEMANAGER} ]] |
13 |
then |
then |
14 |
if [[ -e ${rc_base}/init.d/mdev ]] |
if [[ -e ${rc_base}/init.d/mdev ]] |
15 |
then |
then |
16 |
RC_DEVMANAGER="udev" |
RC_DEVICEMANAGER="mdev" |
17 |
elif [[ -e ${rc_base}/init.d/udev ]] |
elif [[ -e ${rc_base}/init.d/udev ]] |
18 |
then |
then |
19 |
RC_DEVMANAGER="udev" |
RC_DEVICEMANAGER="udev" |
20 |
fi |
fi |
21 |
fi |
fi |
22 |
|
|
23 |
# load device management hooks |
# load device management hooks |
24 |
source ${rc_base}/init.d/${RC_DEVMANAGER} |
source ${rc_base}/init.d/${RC_DEVICEMANAGER} |
25 |
|
|
26 |
# get mage version |
# get mage version |
27 |
MAGEVER="$(< /etc/mageversion)" |
MAGEVER="$(< /etc/mageversion)" |