#!/bin/bash __cmdline=`cat /proc/cmdline` for arg in ${__cmdline} ; do if [[ ${arg} == proxy=* ]]; then __proxy=${arg##*=} fi if [[ ${arg} == dns1=* ]]; then __dns1=${arg##*=} fi if [[ ${arg} == dns2=* ]]; then __dns2=${arg##*=} fi if [[ ${arg} == openglip=* ]]; then __openglip=${arg##*=} fi if [[ ${arg} == sdb_port=* ]]; then __sdb_port=${arg##*=} fi done if cat /proc/cmdline | grep -q proxy ; then if [ "x${__proxy}" != "x" ] ; then kdb set user/dnet/profile_00/pdp/ProxyAddr "${__proxy}" fi fi if cat /proc/cmdline | grep -q dns ; then rm -rf /etc/resolv.conf if [ "x${__dns1}" != "x" ] ; then echo "nameserver ${__dns1}" >> /etc/resolv.conf fi if [ "x${__dns2}" != "x" ] ; then echo "nameserver ${__dns2}" >> /etc/resolv.conf fi fi if cat /proc/cmdline | grep -q openglip ; then rm -rf /opt/home/opengl_ip.txt if [ "x${__openglip}" != "x" ] ; then echo "${__openglip}" >> /opt/home/opengl_ip.txt fi fi if cat /proc/cmdline | grep -q sdb_port ; then rm -rf /opt/home/sdb_port.txt if [ "x${__sdb_port}" != "x" ] ; then echo "${__sdb_port}" >> /opt/home/sdb_port.txt fi fi