Changeset bc2cae6


Ignore:
Timestamp:
07/15/14 09:52:39 (13 months ago)
Author:
Josh <joshms@…>
Branches:
master, enter/10, releng/10.0.3, releng/10.1, releng/10.1.1, releng/10.1.2
Children:
45291792
Parents:
d4d203f
Message:

Added a menu entry for hardware detection in text installer and wrote a function to detect a compatible active network card and report it back to the user.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pc-installdialog/pc-installdialog.sh

    rd4d203f rbc2cae6  
    444444} 
    445445 
     446get_hardware_info() 
     447{ 
     448 
     449  #This is to detect an active network card for FreeBSD & PC-BSD 
     450   ifconfig | grep -q 'status: active' 
     451   if [ $? -eq 0 ] ; then 
     452     echo "Compatible Active Network Card Detected" 
     453     rtn 
     454   else 
     455     echo "No Compatible Active Network Card Detected" 
     456     rtn 
     457     fi 
     458} 
     459 
    446460get_target_part() 
    447461{ 
     
    800814  while : 
    801815  do 
    802     dialog --title "PC-BSD Text Install" --menu "Please select from the following options:" 18 40 10 install "Start the installation" wizard "Re-run install wizard" edit "Edit install options" quit "Quit install wizard" 2>/tmp/answer 
     816    dialog --title "PC-BSD Text Install" --menu "Please select from the following options:" 18 40 10 install "Start the installation" wizard "Re-run install wizard" edit "Edit install options" hardware "check compatibility" quit "Quit install wizard" 2>/tmp/answer 
    803817    if [ $? -ne 0 ] ; then break ; fi 
    804818 
     
    819833             fi 
    820834             ;; 
     835   hardware) get_hardware_info 
     836             ;; 
    821837       quit) break ;; 
    822838          *) ;; 
Note: See TracChangeset for help on using the changeset viewer.