add bin/mib conf dual file

This commit is contained in:
simonzhangsz committed 2024-10-19 15:36:39 +08:00
1 parent 8feba9929d
commit 6156304aed
99 files changed
+66362 -1

No files matched your search

+19
View 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