Changeset 2754


Ignore:
Timestamp:
Mar 29, 2011, 1:38:49 AM (8 years ago)
Author:
bruno
Message:
  • Arch Linux support for boot message of mindi (mc_at_carreira.com.pt) using /etc/arch-release and pacman.log
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi/mindi

    r2753 r2754  
    16011601    if [ -x "/bin/lsb_release" ]; then
    16021602        DESC=`/bin/lsb_release -d | cut -d: -f2 | sed "s/[ \t]*//"`
     1603    elif [ -r /etc/arch-release ]; then  # this code must be written before /etc/issue test to avoid errors                             
     1604        DESC="Arch Linux"                                                                                                           
     1605        if [ -r /var/log/pacman.log ]; then                                                                                         
     1606            # there are no releases but we can get the last system upgrade                                                     
     1607            # Output example:   Arch Linux [2011-03-03 01:39]                                                                   
     1608            DESC="$DESC $(tac /var/log/pacman.log | grep -m1 'full system upgrade' | cut -d']' -f1)]"                           
     1609        fi
    16031610    elif [ -r /etc/issue.net ]; then
    16041611        DESC=`head -1 /etc/issue.net`
Note: See TracChangeset for help on using the changeset viewer.