Magellan Linux

Diff of /trunk/initscripts/sysvinit/rc/functions

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

revision 1665 by niro, Fri Jan 20 23:01:04 2012 UTC revision 1807 by niro, Thu Apr 19 15:20:43 2012 UTC
# Line 47  svcmount="no" Line 47  svcmount="no"
47  svcfstype="tmpfs"  svcfstype="tmpfs"
48  svcsize=1024  svcsize=1024
49    
50  rc_echo() { echo $@; }  rc_echo() { echo "$@"; }
51  rc_print() { rc_echo -e "${COLOREDSTAR}$@"; }  rc_print() { rc_echo -e "${COLOREDSTAR}$@"; }
52    
53  # dummy function; needed if splashutils are not installed  # dummy function; needed if splashutils are not installed
# Line 468  is_older_than() Line 468  is_older_than()
468   return 1   return 1
469  }  }
470    
471    # read /etc/os-release file
472    # read_os_release $item
473    read_os_release()
474    {
475     local NAME
476     local ID
477     local Version
478     local Version_ID
479     local PRETTY_NAME
480     local ANSI_COLOR
481     local CPE_NAME
482    
483     if [[ -f /etc/os-release ]]
484     then
485     source /etc/os-release
486    
487     case $1 in
488     name) echo "${NAME}" ;;
489     id) echo "${ID}" ;;
490     version) echo "${Version}" ;;
491     version_id) echo "${Version_ID}" ;;
492     pretty_name) echo "${PRETTY_NAME}" ;;
493     ansi_color) echo "${ANSI_COLOR}" ;;
494     cpe_name) echo "${CPE_NAME}" ;;
495     esac
496     fi
497    }
498    
499  start_devicemanager() { touch /dev/.none; return 0; }  start_devicemanager() { touch /dev/.none; return 0; }
500  stop_devicemanager() { return 0; }  stop_devicemanager() { return 0; }

Legend:
Removed from v.1665  
changed lines
  Added in v.1807