Magellan Linux

Diff of /alx-src/branches/alxconf-060/init.d/alxsettings

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

revision 2470 by niro, Mon Jun 27 15:07:24 2011 UTC revision 2568 by niro, Mon Jul 4 21:16:51 2011 UTC
# Line 165  get_system_serial() Line 165  get_system_serial()
165   fi   fi
166    
167    
168   CUR_IP=$(/sbin/ifconfig eth0 | sed -n '/addr:/s/ [^r]*..//gp')   CUR_IP=$(/sbin/ifconfig ${ALX_IFACE} | sed -n '/addr:/s/ [^r]*..//gp')
169   CUR_MAC=$(/sbin/ifconfig eth0 | grep HWaddr | cut -d ' ' -f11)   CUR_MAC=$(/sbin/ifconfig ${ALX_IFACE} | grep HWaddr | cut -d ' ' -f11)
170   CUR_MTIME=$(date +%s)   CUR_MTIME=$(date +%s)
171    
172   # abort now if this is a forced re-check   # abort now if this is a forced re-check
# Line 420  import_settings_to_db() Line 420  import_settings_to_db()
420   local alx_os   local alx_os
421   local alx_utils   local alx_utils
422   alx_os="$(< /etc/mageversion)"   alx_os="$(< /etc/mageversion)"
423   alx_utils="$(magequery -n alxconfig-ng-alx | sed 's:.*\[\ \(.*\)\ \].*:\1:')"   alx_utils="$(magequery -n alxconfig-ng | sed 's:.*\[\ \(.*\)\ \].*:\1:')"
424   alx_utils="${alx_utils/alxconfig-ng-alx-}"   alx_utils="${alx_utils/alxconfig-ng-}"
425   mysqldo "insert into client_version(serial,os,utils) values('${ALX_SERIAL}','${alx_os}','${alx_utils}')"   mysqldo "insert into client_version(serial,os,utils) values('${ALX_SERIAL}','${alx_os}','${alx_utils}')"
426    
427   evaluate_retval   evaluate_retval
# Line 551  import_settings_local() Line 551  import_settings_local()
551   then   then
552   # set an device alias for modprobe.conf   # set an device alias for modprobe.conf
553   [ ! -d /etc/modprobe.d ] && install -d /etc/modprobe.d   [ ! -d /etc/modprobe.d ] && install -d /etc/modprobe.d
554   echo "alias eth0 ${NETCARD_DRIVER}" > /etc/modprobe.d/net.eth0.conf   # update only if not the same (to speed up bootprocess - no depmod)
555     CONFIG="/etc/modprobe.d/net.${ALX_IFACE}.conf"
556     clearconfig
557     addconfig "alias ${ALX_IFACE} ${cfg_network_module}"
558    
559     # update confd-networking default iface
560     [ ! -d ${SETTINGSPATH} ] && install -d ${SETTINGSPATH}
561     CONFIG="${SETTINGSPATH}/confd-networking"
562     clearconfig
563     addconfig "${ALX_IFACE}"
564    
565   # regenerate modprobe.conf   # regenerate modprobe.conf
566   [ -x $(which modules-update) ] && modules-update || rc_echo "modules-update not found!"   [ -x $(which modules-update) ] && modules-update || rc_echo "modules-update not found!"
# Line 628  import_settings_local() Line 637  import_settings_local()
637   [ -d ${ALX_UNPRIV_HOME}/.idesktop ] && rm -rf ${ALX_UNPRIV_HOME}/.idesktop   [ -d ${ALX_UNPRIV_HOME}/.idesktop ] && rm -rf ${ALX_UNPRIV_HOME}/.idesktop
638   install -d ${ALX_UNPRIV_HOME}/.idesktop   install -d ${ALX_UNPRIV_HOME}/.idesktop
639    
640     # add shutdown, reboot icons
641     local name
642     # default settings
643     declare -i x=30
644     declare -i y=30
645     for i in shutdown reboot
646     do
647     case ${i} in
648     shutdown) name="Herunterfahren" ;;
649     reboot) name="Neustarten" ;;
650     esac
651    
652     generate_icon \
653     --name "${name}" \
654     --command "/usr/lib/alxconfig-ng/bin/user_${i}.sh" \
655     --icon "${ALX_SESSIONS_ICONS}/${i}.png" \
656     --dest "${dest}/${i}.lnk" \
657     --xres "${x}" \
658     --yres "${y}"
659    
660     y=$((${y} + 80))
661     done
662    
663   # last but not least gen a icon with some sys informations   # last but not least gen a icon with some sys informations
664   local sysinfo   local sysinfo
665   local osversion   local osversion
# Line 711  preliminary_network() Line 743  preliminary_network()
743   ${rc_base}/init.d/network start   ${rc_base}/init.d/network start
744   else   else
745   rc_print "Starting default dhcp based networking ... "   rc_print "Starting default dhcp based networking ... "
746   ${ALX_DHCP_PROG} ${ALX_DHCP_START} &> /dev/null   ${ALX_DHCP_PROG} ${ALX_DHCP_START} ${ALX_IFACE} &> /dev/null
747   evaluate_retval   evaluate_retval
748   fi   fi
749   ;;   ;;

Legend:
Removed from v.2470  
changed lines
  Added in v.2568