特黄特色三级在线观看免费,看黄色片子免费,色综合久,欧美在线视频看看,高潮胡言乱语对白刺激国产,伊人网成人,中文字幕亚洲一碰就硬老熟妇

學(xué)習(xí)啦 > 學(xué)習(xí)電腦 > 操作系統(tǒng) > Linux教程 >

BSD多用戶圖形腳本/etc/rc.d/rc.5

時間: 若木635 分享

  BSD多用戶圖形腳本/etc/rc.d/rc.5

  5級只是在2級基礎(chǔ)上追加圖形功能,所以先復(fù)制一份,代碼如下。

  cp /etc/rc.d/rc.2 /etc/rc.d/rc.5

  /etc/rc.d/rc.5追加部分

  追加部分查看kdm,gdm,xdm是否存在,存在其一則啟動圖形界面。否則轉(zhuǎn)到2級登陸界面。

  echo "Starting graphical login manager..."

  if [ -x /opt/kde/bin/kdm ]; then

  /opt/kde/bin/kdm -nodaemon

  elif [ -x /usr/bin/gdm ]; then

  /usr/bin/gdm -nodaemon

  elif [ -x /usr/X11R6/bin/xdm ]; then

  /usr/X11R6/bin/xdm -nodaemon

  else

  echo "You chose to start graphical login mode, but you don't have either KDM or"

  echo "GDM or XDM installed. This script looks for these display managers in the"

  echo "following locations:"

  echo

  echo " KDM /opt/kde/bin/kdm"

  echo " GDM /usr/bin/gdm"

  echo " XDM /usr/X11R6/bin/xdm"

  echo

  echo "This message will go away in 10 seconds, and after that you will be dropped"

  echo "in runlevel 2."

  sleep 10

  /sbin/telinit 2

  fi

75555