add bin/mib conf dual file
This commit is contained in:
19
bin/chgDate
Normal file
19
bin/chgDate
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
#when change the date of system,
|
||||
#people always forget to do "hwclock --systohc"
|
||||
#But system will use the hardware clock after reboot.
|
||||
#so it is necessary to do it by this script.
|
||||
|
||||
#By Hewd 2004-02-04
|
||||
|
||||
if [ $# -ne 2 ] ; then
|
||||
echo "Example:"
|
||||
echo "chgdate \"2004-02-15 12:00:00\""
|
||||
else
|
||||
date --set="$1 $2"
|
||||
echo "date --set=\"$1 $2\""
|
||||
echo "hwclock --systohc"
|
||||
date --set="$1 $2"
|
||||
hwclock --systohc
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user