- Timestamp:
- 04/30/09 02:02:48 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pkg/kev/main/initscripts-parsix-live/trunk/debian/live-autoconfig.init
r5147 r5148 920 920 echo -n "${NORMAL}" 921 921 922 # KANOTIX autoconfig 923 922 924 # udev support 923 925 … … 930 932 RUNLEVEL=S /etc/init.d/udev start &>/dev/null 931 933 # load capability LSM (needed for hal) 932 modprobe capability &>/dev/null 934 modprobe capability &>/dev/null 935 if [ -x /etc/init.d/dbus-1 ]; then 936 /etc/init.d/dbus-1 start &>/dev/null 937 elif [ -x /etc/init.d/dbus ]; then 938 /etc/init.d/dbus start &>/dev/null 939 fi 933 940 fi 934 941 fi … … 969 976 basename="${basename%%.*}" 970 977 case "$basename" in *_acpi) 971 egrep -qi "${basename%%_acpi}" /proc/acpi/dsdt 2>/dev/null &>/dev/null|| continue ;;978 egrep -qi "${basename%%_acpi}" /proc/acpi/dsdt 2>/dev/null || continue ;; 972 979 esac 973 980 modprobe $basename &>/dev/null && echo -n " ${YELLOW}$basename${GREEN}" && found="yes" … … 975 982 test -z "$found" && echo -n "${BLUE}(none)" 976 983 echo "${NORMAL}" 977 fuser -k /proc/acpi/event &>/dev/null &>/dev/null978 /etc/init.d/acpid start &>/dev/null &>/dev/null984 fuser -k /proc/acpi/event &>/dev/null 985 /etc/init.d/acpid start &>/dev/null 979 986 fi 980 987 else … … 1317 1324 1318 1325 # Fat-Client-Version: DHCP Broadcast for IP address 1319 #if checkbootparam "nodhcp"; then 1320 # echo " ${BLUE}Skipping DHCP broadcast/network detection as requested on boot commandline.${NORMAL}" 1321 #else 1322 # NETDEVICES="$(awk -F: '/ath.:|eth.:|tr.:|wlan.:/{print $1}' /proc/net/dev 2>/dev/null)" 1323 # for DEVICE in $NETDEVICES; do 1324 # echo -n " ${GREEN}Network device ${MAGENTA}$DEVICE${GREEN} detected, DHCP broadcasting for IP.${NORMAL}" 1325 # trap 2 3 11 1326 # pump -i $DEVICE &>/dev/null & 1327 # trap "" 2 3 11 1328 # sleep 1 1329 # echo " ${BLUE}(Backgrounding)${NORMAL}" 1330 # done 1331 #fi 1332 1333 1334 # Load DBUS 1335 echo " ${GREEN}Starting ${YELLOW}DBUS${GREEN} Service...${NORMAL}" 1336 /etc/init.d/dbus start 1337 1338 # Load HAL 1339 echo " ${GREEN}Starting ${YELLOW}HAL${GREEN} Service...${NORMAL}" 1340 /etc/init.d/hal start 1341 1342 # Load NetworkManager 1343 echo " ${GREEN}Starting ${YELLOW}NetworkManager${GREEN} Service...${NORMAL}" 1344 /etc/init.d/network-manager start 1326 if checkbootparam "nodhcp"; then 1327 echo " ${BLUE}Skipping DHCP broadcast/network detection as requested on boot commandline.${NORMAL}" 1328 else 1329 NETDEVICES="$(awk -F: '/ath.:|eth.:|tr.:|wlan.:/{print $1}' /proc/net/dev 2>/dev/null)" 1330 for DEVICE in $NETDEVICES; do 1331 echo -n " ${GREEN}Network device ${MAGENTA}$DEVICE${GREEN} detected, DHCP broadcasting for IP.${NORMAL}" 1332 trap 2 3 11 1333 pump -i $DEVICE &>/dev/null & 1334 trap "" 2 3 11 1335 sleep 1 1336 echo " ${BLUE}(Backgrounding)${NORMAL}" 1337 done 1338 fi 1345 1339 1346 1340 findfile(){ … … 1601 1595 source "$MYCONFIG" "/home/${FLL_LIVE_USER}" || true 1602 1596 echo "0" > /proc/sys/kernel/printk 1597 fi 1598 1599 1600 # modem detection 1601 if ! checkbootparam "nomodem"; then 1602 if lspci|grep Intel|grep -q "AC'97 Modem Controller"; then 1603 /etc/init.d/sl-modem-daemon start &>/dev/null 1604 grep -q ^sl-modem-daemon /etc/sysconfig/services &>/dev/null || echo sl-modem-daemon >> /etc/sysconfig/services 1605 fi 1603 1606 fi 1604 1607
Note: See TracChangeset
for help on using the changeset viewer.


