add: omc bin & conf & mib

This commit is contained in:
2024-03-19 14:20:41 +08:00
parent f24411386d
commit 9d4009aaca
115 changed files with 66216 additions and 1 deletions

19
omc/bin/chgDate Normal file
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