diff options
Diffstat (limited to 'filesystem/etc/proxy_setting.sh')
-rwxr-xr-x | filesystem/etc/proxy_setting.sh | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/filesystem/etc/proxy_setting.sh b/filesystem/etc/proxy_setting.sh deleted file mode 100755 index d4f84dc..0000000 --- a/filesystem/etc/proxy_setting.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/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 - - |