blob: e9023ed7cf9ba1c25ba8ebb092c093bf637f4501 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#!/bin/bash
2
3diffconfig=$LINUX_DIR/scripts/diffconfig
4
5config_old=$1
6config_new=$2
7
8#diff_cnt=`$diffconfig $config_old $config_new | grep -E "\-|+" | grep " y" | wc | awk '{ print $1 }'`
9diff_cnt=`$diffconfig $config_old $config_new | grep "-" | grep " y" | wc | awk '{ print $1 }'`
10if [ $diff_cnt -gt 0 ]; then
11 echo "[error] $config_old -> $config_new difference"
12 $diffconfig $config_old $config_new | grep "-" | grep " y"
13 exit $diff_cnt
14fi
15
16echo "[pass] linux config diffconfig check pass"
17exit 0