1 2 3 4 5 6 7 8
if [ $1 -eq 1 ]; then /sbin/chkconfig --add dm /sbin/chkconfig --add update_wms fi if grep -qs '^x:5:' /etc/inittab; then /sbin/chkconfig --add dm sed -i 's/^x:5:/#x:5:/' /etc/inittab fi
1 2 3 4
if [ $1 -eq 0 ]; then /sbin/chkconfig --del dm /sbin/chkconfig --del update_wms fi