Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) Safe-mode: OFF (not secure) /usr/lib/oci-linux-config/cloud/scripts/initramfs-mod/ drwxr-xr-x |
Viewing file: Select action/file-type: #!/bin/bash # # Copyright (C) 2020 Oracle Corp., Inc. All rights reserved. # Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl # # /usr/lib/oci-linux-config/cloud/scripts/initramfs-mod/net.sh # echo "$(date) - OCI initramfs network modification script started." # Symlink network config files where cloud-init >= 19.4 expects them DRACUT_CFG=/run/initramfs/state/etc/sysconfig/network-scripts CI_DIR=/run if [ -d $DRACUT_CFG ]; then FILE_COUNT=`ls $DRACUT_CFG | wc -l` if [ $FILE_COUNT -eq 0 ]; then # Create dummy file if dracut did not create network device config dummycfg=$CI_DIR/net-dummy.conf echo "DEVICE=\"dummy\"" > $dummycfg echo "BOOTPROTO=dhcp" >> $dummycfg echo "$(date) - Creating dummy config $dummycfg." else for dcfg in $DRACUT_CFG/*; do filename=${dcfg##*/} devname=${filename##ifcfg-} cicfg=$CI_DIR/net-$devname.conf if [ ! -e $cicfg ]; then echo "$(date) - Creating symlink from $dcfg to $cicfg." ln -s $dcfg $cicfg fi done fi fi echo "$(date) - OCI initramfs network modification script done." |
:: Command execute :: | |
--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0036 ]-- |