Skip to content

Commit

Permalink
custom history format - timestamped for .08 beta
Browse files Browse the repository at this point in the history
  • Loading branch information
centminmod committed Mar 10, 2015
1 parent 4bef4cd commit 3db877e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions inc/cpcheck.inc
Expand Up @@ -75,6 +75,14 @@ csfipsetcheck

}

histformat() {
if [[ -z "$(grep HISTTIMEFORMAT /root/.bashrc)" ]]; then
echo "HISTTIMEFORMAT=\"[%d.%m.%y] %T \"" >> /root/.bashrc
echo "export HISTSIZE=10000" >> /root/.bashrc
echo "export HISTTIMEFORMAT" >> /root/.bashrc
fi
}

setupdate() {
cat > "/usr/bin/cminfo_updater"<<EOF
#!/bin/bash
Expand Down
1 change: 1 addition & 0 deletions inc/memcheck.inc
Expand Up @@ -17,6 +17,7 @@ CHECKLOWMEM=`expr $TOTALMEM \< $ISLOWMEM`
lowmemcheck() {

cpcheck
histformat

# Check memory installed threshold
if [ "$CHECKLOWMEM" == "1" ]; then
Expand Down

0 comments on commit 3db877e

Please sign in to comment.