X7ROOT File Manager
Current Path:
/var/VMOptimizationToolsLinux
var
/
VMOptimizationToolsLinux
/
📁
..
📄
LinuxUpdate.XML
(645 B)
📄
SangforVMSTool
(3.11 KB)
📄
SangforVMSTool.service
(194 B)
📄
action_common.sh
(13.34 KB)
📄
busybox_cmd_ln.sh
(2.24 KB)
📄
collect_test_data.sh
(1.16 KB)
📄
common_config.sh
(278 B)
📄
data_test_tool.sh
(12.59 KB)
📄
debian_vmconfig.sh
(10.74 KB)
📄
guest_system_config.sh
(1.82 KB)
📄
log.sh
(1.36 KB)
📄
mod_test.sh
(3.69 KB)
📄
mod_test1.sh
(914 B)
📄
net_common.sh
(915 B)
📄
redhat_vmconfig.sh
(11.14 KB)
📄
sangfor_guest_datareport
(21.66 KB)
📄
sangfor_heartalive.sh
(2.37 KB)
📄
sangfor_module_update
(28.11 KB)
📄
sangfor_set_network.sh
(504 B)
📄
sangfor_sfping
(3.85 KB)
📄
sangfor_sshkey_gen
(1.29 KB)
📄
sangfor_update_ipc_callback
(5.29 KB)
📄
sangfor_vm_proxyd
(3.45 KB)
📄
sangfor_vm_proxyd_r
(4.4 KB)
📄
sangfor_vm_proxyd_w
(1.32 KB)
📄
sangfor_vmconfig
(2.4 KB)
📄
sangfor_vmconfig_common
(27.99 KB)
📄
sangfor_vmconfig_ipc_callback
(4.75 KB)
📄
sangfor_watchdog
(3.95 KB)
📄
sfping.c
(15.68 KB)
📄
sfping.pl
(6.15 KB)
📄
startall
(1.78 KB)
📄
stopall
(1.11 KB)
📄
suse_vmconfig.sh
(6.19 KB)
📁
tools_x64
📁
tools_x86
📄
uni_test.sh
(2.59 KB)
📄
update_common_func
(4.35 KB)
📄
update_common_header
(4.86 KB)
📄
update_config
(2.89 KB)
📄
update_install
(28.84 KB)
📄
virtio_nic_attr_set.sh
(2.42 KB)
📄
virtio_nic_compat.sh
(5.28 KB)
📄
vm_ip_recover.sh
(16.66 KB)
📄
vm_ipc.sh
(9.06 KB)
📄
vmconfig_common_func
(10.76 KB)
📄
vmconfig_common_header
(3.37 KB)
📄
vmconfig_config
(805 B)
📄
vmtools-install.sh
(31.16 KB)
📄
watch_test.sh
(313 B)
📄
watchdog.sh
(1.39 KB)
📁
x64
📁
x86
Editing: update_config
#!/bin/bash #The parent directory of the install directory. declare -r g_sangfor_vmtools_parent_dir="/usr/local" #The install directory declare -r g_sangfor_vmtools_install_dir="${g_sangfor_vmtools_parent_dir}/VMOptimizationTools" #The directory to save log file. declare -r g_sangfor_log_dir="/var/log" #The file list. #update service declare -r g_update_shell_name="sangfor_module_update" #vmconfig service declare -r g_vmconfig_shell_name="sangfor_vmconfig" #vmconfig vm_ipc callback shell file declare -r g_vmconfig_callback_shell_file="sangfor_vmconfig_ipc_callback" # vm_proxyd service declare -r g_vm_proxyd_shell_name="sangfor_vm_proxyd" # report service declare -r g_report_shell_name="sangfor_guest_datareport" #update vm_ipc callback shell file declare -r g_update_callback_shell_file="sangfor_update_ipc_callback" #sfping shell file declare -r g_sfping_shell_file="sangfor_sfping" #sshkey gen shell file declare -r g_sshkey_gen_shell_file="sangfor_sshkey_gen" #virtio_nic_attr_set file,not service declare -r g_virtio_nic_attr_file="virtio_nic_attr_set.sh" declare -r g_virtio_nic_compat="virtio_nic_compat.sh" declare -r g_heartalive_shell_file="sangfor_heartalive.sh" declare -r g_sangfor_services=( [1]="${g_update_shell_name}" [2]="${g_vm_proxyd_shell_name}" [3]="${g_report_shell_name}" [4]="${g_update_callback_shell_file}" [5]="${g_sfping_shell_file}" [6]="${g_heartalive_shell_file}" [7]="${g_vmconfig_shell_name}" [8]="${g_vmconfig_callback_shell_file}") #The link file to the startall shell file. declare -r g_boot_link_file_name="S99SangforVMSTool" #The shell file start when boot. declare -r g_boot_shell_file="SangforVMSTool" #start all declare -r g_startall_shell_file="startall" #stop all declare -r g_stopall_shell_file="stopall" #install shell file declare -r g_install_shell_file="update_install" #watchdog declare -r g_watchdog_shell_file="sangfor_watchdog" #the rc directory declare -r g_init_d_dir="/etc/init.d" declare -r g_rc1_dir="/etc/rc1.d" declare -r g_rc2_dir="/etc/rc2.d" declare -r g_rc3_dir="/etc/rc3.d" declare -r g_rc4_dir="/etc/rc4.d" declare -r g_rc5_dir="/etc/rc5.d" declare -r g_rc_dir=( [1]="${g_rc1_dir}" [2]="${g_rc2_dir}" [3]="${g_rc3_dir}" [4]="${g_rc4_dir}" [5]="${g_rc5_dir}" ) declare -r g_rcd_rc1_dir="/etc/rc.d/rc1.d" declare -r g_rcd_rc2_dir="/etc/rc.d/rc2.d" declare -r g_rcd_rc3_dir="/etc/rc.d/rc3.d" declare -r g_rcd_rc4_dir="/etc/rc.d/rc4.d" declare -r g_rcd_rc5_dir="/etc/rc.d/rc5.d" declare -r g_rcd_rc_dir=( [1]="${g_rcd_rc1_dir}" [2]="${g_rcd_rc2_dir}" [3]="${g_rcd_rc3_dir}" [4]="${g_rcd_rc4_dir}" [5]="${g_rcd_rc5_dir}" ) #virtio device declare -r g_virtio_devices_dir="/sys/bus/virtio/devices" #XML file name declare -r g_xml_file_name="LinuxUpdate.XML" #systemd directory declare -r g_systemd_usr_dir="/usr/lib/systemd/system" declare -r g_systemd_etc_dir="/etc/systemd/system/multi-user.target.wants" declare -r g_systemd_lib_dir="/lib/systemd/system"
Upload File
Create Folder