11 |
#%before: |
#%before: |
12 |
#%after: |
#%after: |
13 |
|
|
14 |
# $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/init.d/alxsettings,v 1.1 2008-06-04 16:47:56 niro Exp $ |
# $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/init.d/alxsettings,v 1.2 2008-06-04 16:52:25 niro Exp $ |
15 |
|
|
16 |
# checks first if the client was already configured and if it has an valid serial |
# checks first if the client was already configured and if it has an valid serial |
17 |
# if not it runs the autoconfiguration script |
# if not it runs the autoconfiguration script |
644 |
# start|stop |
# start|stop |
645 |
preliminary_network() |
preliminary_network() |
646 |
{ |
{ |
|
local module |
|
|
|
|
|
if [ -f /etc/alxconfig-ng/state/configured ] |
|
|
then |
|
|
# compat for old clients |
|
|
if [ -f ${SETTINGSPATH}/modules ] |
|
|
then |
|
|
# get module name |
|
|
module=$(cat ${SETTINGSPATH}/modules) |
|
|
modprobe ${module} |
|
|
fi |
|
|
else |
|
|
# vars used by hwdetect |
|
|
local NETCARD_FULLNAME NETCARD_DRIVER MOUSE_FULLNAME MOUSE_DEVICE SOUND_FULLNAME |
|
|
local SOUND_DRIVER XSERVER XMODULE XDESC FLOPPY_FULLNAME FLOPPY_DEVICE FLOPPY_DRIVER |
|
|
|
|
|
# get setting from hwdetect |
|
|
source /etc/sysconfig/hwsetup/knoppix |
|
|
modprobe ${NETCARD_DRIVER} |
|
|
fi |
|
|
|
|
647 |
case $1 in |
case $1 in |
648 |
start) |
start) |
649 |
# keeping like always safe: |
# keeping like always safe: |