Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing config.gz file management and enchaning $SCRIPTDIR resolution #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions sched-scoreboard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ else
echo "command to be executed : $command"
fi

SCRIPTDIR=`dirname "$0"`;
SCRIPTDIR=`dirname $(realpath "$0")`;

mkdir -p $LOGDIR

Expand Down Expand Up @@ -154,10 +154,7 @@ then
CONFIG_FILE=""
if [ -f /proc/config.gz ]
then
cp /proc/config.gz $LOGDIR
cd $LOGDIR
gunzip config.gz
mv -f config config-$VERSION
gunzip -c /proc/config.gz > $LOGDIR/config-$VERSION
CONFIG_FILE=$LOGDIR/config-$VERSION
ORIG_CONFIG_FILE="/proc/config.gz"
elif [ -f /boot/config-$VERSION ]
Expand Down