"Fossies" - the Fresh Open Source Software Archive

Member "rear-2.7/usr/share/rear/init/default/005_verify_os_conf.sh" (14 Jul 2022, 444 Bytes) of package /linux/privat/rear-2.7.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "005_verify_os_conf.sh": 2.6_vs_2.7.

    1 # usr/share/rear/init/default/005_verify_os_conf.sh
    2 
    3 # Skip if etc/rear/os.conf already exists:
    4 test -f "$CONFIG_DIR/os.conf" && return
    5 
    6 # If there is none create etc/rear/os.conf with the values set
    7 # by SetOSVendorAndVersion() that was called in usr/sbin/rear:
    8 echo "OS_VENDOR=$OS_VENDOR" > "$CONFIG_DIR/os.conf"
    9 echo "OS_VERSION=$OS_VERSION" >> "$CONFIG_DIR/os.conf"
   10 Log "Created $CONFIG_DIR/os.conf with content:"
   11 cat "$CONFIG_DIR/os.conf"