zoukankan      html  css  js  c++  java
  • igel udc2 config

    igel udc2 config

    系统安装盘下载地址 http://www.myigel.biz/?forcedownload

    /config/bin/igelone_config

    #!/bin/sh
    
    # in case this is a IGEL one and no license is configured startup license
    # chooser
    PRODUCT_ID=`cat /etc/productid`
    # first check whether this is the initial boot after installing the image
    if [ -f /license/.first_boot ] ; then
      if [ "${PRODUCT_ID}" = "IGEL one" ] ; then
        xsetroot -cursor_name left_ptr
        listservices > /dev/null 2>&1
        RET=$?
        if [ "$RET" = "1" ] ; then
          gtkmessage -m "This device has not received a valid license. Do not ship." -b "#ff0000" -f
          /sbin/soft_shutdown
        else
            gtkmessage -m "This device received a valid license. It is ready to use." -b "#00ff00" -f
        fi
      fi
      # remove the initial file
      mount -o remount,rw /license
      rm /license/.first_boot
      mount -o remount,ro /license
    fi
    
    if [ "${PRODUCT_ID}" = "IGEL one" ] ; then
      if [ ! -f /wfs/.igel1_license ] ; then
        xsetroot -cursor_name left_ptr
        if [ -x /bin/igel_license_chooser ] ; then
          /bin/igel_license_chooser
          RET=$?
          sync
          if [ "$RET" = "2" ] ; then
            /sbin/soft_shutdown
          else
            /sbin/soft_reboot
          fi
        fi
      fi
    fi
    

    =============== End

  • 相关阅读:
    第 5 章 Nova
    第 5 章 Nova
    第 5 章 Nova
    第 5 章 Nova
    第 5 章 Nova
    第 5 章 Nova
    第 5 章 Nova
    vba:提取字符串中间字符
    vba:根据给定单元格搜索目标值
    vba:合并当前目录下所有工作簿的全部工作表
  • 原文地址:https://www.cnblogs.com/lsgxeva/p/11911555.html
Copyright © 2011-2022 走看看