Magellan Linux

Diff of /tags/grubby-8_15/new-kernel-pkg

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1770 by niro, Sat Mar 3 15:22:47 2012 UTC revision 1778 by niro, Sat Mar 3 16:05:42 2012 UTC
# Line 25  Line 25 
25  # along with this program.  If not, see <http://www.gnu.org/licenses/>.  # along with this program.  If not, see <http://www.gnu.org/licenses/>.
26  #  #
27    
28    read_os_release()
29    {
30     local NAME
31     local ID
32     local Version
33     local Version_ID
34     local PRETTY_NAME
35     local ANSI_COLOR
36     local CPE_NAME
37    
38     if [[ -f /etc/os-release ]]
39     then
40     source /etc/os-release
41    
42     case $1 in
43     name) echo "${NAME}" ;;
44     id) echo "${ID}" ;;
45     version) echo "${Version}" ;;
46     version_id) echo "${Version_ID}" ;;
47     pretty_name) echo "${PRETTY_NAME}" ;;
48     ansi_color) echo "${ANSI_COLOR}" ;;
49     cpe_name) echo "${CPE_NAME}" ;;
50     esac
51     fi
52    }
53    
54  PATH=/sbin:/bin:$PATH  PATH=/sbin:/bin:$PATH
55    
56  lilo=/sbin/lilo  lilo=/sbin/lilo
# Line 202  install() Line 228  install()
228   elif [ -f /etc/mageversion ]   elif [ -f /etc/mageversion ]
229   then   then
230   title="Magellan Linux $(< /etc/mageversion) [ ${version} ]"   title="Magellan Linux $(< /etc/mageversion) [ ${version} ]"
231     elif [[ $(read_os_release id) = magellan ]]
232     then
233     title="$(read_os_release name) $(read_os_release version_id) [ ${version} ]"
234   else   else
235   title="Magellan Linux [ ${version} ]"   title="Magellan Linux [ ${version} ]"
236   fi   fi
# Line 223  install() Line 252  install()
252   elif [ -f /etc/mageversion ]   elif [ -f /etc/mageversion ]
253   then   then
254   title="Magellan Linux $(< /etc/mageversion) [ ${version} ]"   title="Magellan Linux $(< /etc/mageversion) [ ${version} ]"
255     elif [[ $(read_os_release id) = magellan ]]
256     then
257     title="$(read_os_release name) $(read_os_release version_id) [ ${version} ]"
258   else   else
259   title="Magellan Linux [ ${version} ]"   title="Magellan Linux [ ${version} ]"
260   fi   fi
# Line 245  install() Line 277  install()
277   elif [ -f /etc/mageversion ]   elif [ -f /etc/mageversion ]
278   then   then
279   title="Magellan Linux $(< /etc/mageversion) [ ${version} ]"   title="Magellan Linux $(< /etc/mageversion) [ ${version} ]"
280     elif [[ $(read_os_release id) = magellan ]]
281     then
282     title="$(read_os_release name) $(read_os_release version_id) [ ${version} ]"
283   else   else
284   title="Magellan Linux [ ${version} ]"   title="Magellan Linux [ ${version} ]"
285   fi   fi
# Line 292  install() Line 327  install()
327   elif [ -f /etc/mageversion ]   elif [ -f /etc/mageversion ]
328   then   then
329   title="Magellan Linux $(< /etc/mageversion) [ ${version} ]"   title="Magellan Linux $(< /etc/mageversion) [ ${version} ]"
330     elif [[ $(read_os_release id) = magellan ]]
331     then
332     title="$(read_os_release name) $(read_os_release version_id) [ ${version} ]"
333   else   else
334   title="Magellan Linux [ ${version} ]"   title="Magellan Linux [ ${version} ]"
335   fi   fi

Legend:
Removed from v.1770  
changed lines
  Added in v.1778