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

 

posted @   lsgxeva  阅读(403)  评论(0编辑  收藏  举报
编辑推荐:
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
历史上的今天:
2018-11-22 vyos 基础配置
2018-11-22 vyatta的fork开源版本vyos
2018-11-22 vyos User Guide
2018-11-22 libuv 简单使用
2018-11-22 深度学习如何入门
2017-11-22 在 QML 中创建 C++ 导入类型的实例
点击右上角即可分享
微信分享提示