Subversion Repositories livecd

Rev

Rev 332 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 332 Rev 333
Line 310... Line 310...
310
fi
310
fi
311
 
311
 
312
### turn on services, which are off by default
312
### turn on services, which are off by default
313
if [ "\\\$SERVICES_ON" ]; then
313
if [ "\\\$SERVICES_ON" ]; then
314
    for service in \\\$SERVICES_ON ; do
314
    for service in \\\$SERVICES_ON ; do
315
        [ -f /etc/init.d/\\\$service ] && chkconfig \\\$service ofn  2>/dev/null
315
        [ -f /etc/init.d/\\\$service ] && chkconfig \\\$service on  2>/dev/null
316
    done
316
    done
317
fi
317
fi
318
 
318
 
319
### services off, from command line parameter (turn it off once again)
319
### services off, from command line parameter (turn it off once again)
320
if [ "\\\$SERVICEOFF" ]; then
320
if [ "\\\$SERVICEOFF" ]; then
321
    for service in \\\$( echo "\\\$SERVICEOFF" | tr ':' ' ' ); do
321
    for service in \\\$( echo "\\\$SERVICEOFF" | tr ':' ' ' ); do
322
        [ -f /etc/init.d/\\\$service ] && chkconfig \\\$service off 2>/dev/null
322
        [ -f /etc/init.d/\\\$service ] && chkconfig \\\$service off 2>/dev/null
323
    done
323
    done
324
fi
324
fi
325
 
325
 
326
# services on, from command line parameter (turn it ofn once again)
326
# services on, from command line parameter (turn it on once again)
327
if [ "\\\$SERVICEON" ]; then
327
if [ "\\\$SERVICEON" ]; then
328
    for service in \\\$( echo "\\\$SERVICEON" | tr ':' ' ' ); do
328
    for service in \\\$( echo "\\\$SERVICEON" | tr ':' ' ' ); do
329
        [ -f /etc/init.d/\\\$service ] && chkconfig \\\$service on  2>/dev/null
329
        [ -f /etc/init.d/\\\$service ] && chkconfig \\\$service on  2>/dev/null
330
    done
330
    done
331
fi
331
fi