⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chkconf_kernel.sh

📁 mobile ipv6协议Linux实现源代码
💻 SH
字号:
#!/bin/sh# Simple shell script to check kernel configuration sanity# for use with MIPL Mobile IPv6 patches## Authors:# Antti Tuominen          <ajtuomin@tml.hut.fi>## $Id: s.chkconf_kernel.sh 1.4 02/12/20 15:47:23+02:00 antti@jon.mipl.mediapoli.com $## This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License# as published by the Free Software Foundation; either version# 2 of the License, or (at your option) any later version.# Default settings for kernelDFLT_CONFIG_EXPERIMENTAL=yDFLT_CONFIG_SYSCTL=yDFLT_CONFIG_PROC_FS=yDFLT_CONFIG_MODULES=yDFLT_CONFIG_NET=yDFLT_CONFIG_NETFILTER=yDFLT_CONFIG_UNIX=yDFLT_CONFIG_INET=yDFLT_CONFIG_IPV6=mDFLT_CONFIG_IPV6_SUBTREES=yDFLT_CONFIG_IPV6_IPV6_TUNNEL=mDFLT_CONFIG_IPV6_MOBILITY=mTAGS="CONFIG_EXPERIMENTAL CONFIG_SYSCTL CONFIG_PROC_FS CONFIG_MODULES \      CONFIG_NET CONFIG_NETFILTER CONFIG_UNIX CONFIG_INET CONFIG_IPV6 \      CONFIG_IPV6_SUBTREES CONFIG_IPV6_IPV6_TUNNEL \      CONFIG_IPV6_MOBILITY"LINUX=/usr/src/linuxWARN=0;echoecho "Checking kernel configuration...";for TAG in $TAGS ; do    VAL=`sed -ne "/^$TAG=/s/$TAG=//gp" $LINUX/.config`;    eval "DFLT=\$DFLT_$TAG";    if [ "$VAL" != "$DFLT" ] ; then	echo " Warning: $TAG should be set to $DFLT";	let WARN=$WARN+1;    fidoneechoif [ $WARN -eq 0 ] ; then    echo "All kernel options are as they should.";    echo "Do 'make oldconfig' for the kernel before compiling.";else    echo "Above $WARN options may conflict with MIPL.";    echo "If you are not sure, use the recommended setting.";#    echo "Use $0 -fix to do this automatically";fiecho

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -