Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/modules/basic-version/version.client.class.in

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

revision 2698 by niro, Fri Sep 11 09:52:32 2015 UTC revision 2699 by niro, Wed Dec 16 14:11:07 2015 UTC
# Line 14  help_version_tools() Line 14  help_version_tools()
14   mecho " Prints the current mcore-tools version."   mecho " Prints the current mcore-tools version."
15  }  }
16    
17    help_version_netboot()
18    {
19     mecho "get version.netboot"
20     mecho " Prints the current netboot state."
21    }
22    
23  get_version_os()  get_version_os()
24  {  {
25   local version   local version
# Line 47  get_version_tools() Line 53  get_version_tools()
53    
54   rvecho "${version}"   rvecho "${version}"
55  }  }
56    
57    get_version_netboot()
58    {
59     local netboot
60     local i
61    
62     # default no netboot
63     netboot=0
64    
65     if [ -f /proc/cmdline ]
66     then
67     for i in $(< /proc/cmdline)
68     do
69     case ${i} in
70     rd.netboot) netboot=1 ;;
71     esac
72     done
73     fi
74    
75     rvecho "${netboot}"
76    }

Legend:
Removed from v.2698  
changed lines
  Added in v.2699