lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | |
| 3 | diffconfig=$LINUX_DIR/scripts/diffconfig |
| 4 | |
| 5 | config_old=$1 |
| 6 | config_new=$2 |
| 7 | |
| 8 | #diff_cnt=`$diffconfig $config_old $config_new | grep -E "\-|+" | grep " y" | wc | awk '{ print $1 }'` |
| 9 | diff_cnt=`$diffconfig $config_old $config_new | grep "-" | grep " y" | wc | awk '{ print $1 }'` |
| 10 | if [ $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 |
| 14 | fi |
| 15 | |
| 16 | echo "[pass] linux config diffconfig check pass" |
| 17 | exit 0 |