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