๐Ÿ“ฆโž”๐Ÿฆ‹ Store and retrieve files on the Atmosphere
35
fork

Configure Feed

Select the types of activity you want to include in your feed.

add app UAS to fingerprint

Ducky 1b77bfe6 4e70229e

+22 -11
+22 -11
atfile.sh
··· 981 981 machine_id_file="/etc/machine-id" 982 982 os_release_file="/etc/os-release" 983 983 984 - [[ ! -f "$machine_id_file" ]] && atfile.die "Unable to fingerprint โ€” '$machine_id_file' does not exist" 985 - [[ ! -f "$os_release_file" ]] && atfile.die "Unable to fingerprint โ€” '$os_release_file' does not exist" 986 - 987 - id="$(cat "$machine_id_file")" 988 - hostname="$(hostname -s)" 989 - os_name="$(atfile.util.get_var_from_file "$os_release_file" "NAME")" 990 - os_version="$(atfile.util.get_var_from_file "$os_release_file" "VERSION")" 991 - os="$os_name $os_version" 992 - 993 - echo "{ 984 + if [[ $_include_fingerprint == 1 ]]; then 985 + [[ ! -f "$machine_id_file" ]] && atfile.die "Unable to fingerprint โ€” '$machine_id_file' does not exist" 986 + [[ ! -f "$os_release_file" ]] && atfile.die "Unable to fingerprint โ€” '$os_release_file' does not exist" 987 + 988 + id="$(cat "$machine_id_file")" 989 + hostname="$(hostname -s)" 990 + os_name="$(atfile.util.get_var_from_file "$os_release_file" "NAME")" 991 + os_version="$(atfile.util.get_var_from_file "$os_release_file" "VERSION")" 992 + os="$os_name $os_version" 993 + 994 + echo "{ 994 995 \"\$type\": \"blue.zio.atfile.finger#machine\", 996 + \"app\": \"$(atfile.util.get_uas)\", 995 997 \"id\": \"$id\", 996 998 \"host\": \"$hostname\", 997 999 \"os\": \"$os\" 998 1000 }" 1001 + else 1002 + echo "{ 1003 + \"\$type\": \"blue.zio.atfile.finger#machine\", 1004 + \"app\": \"$(atfile.util.get_uas)\", 1005 + \"id\": null, 1006 + \"host\": null, 1007 + \"os\": null 1008 + }" 1009 + fi 999 1010 } 1000 1011 1001 1012 function blue.zio.atfile.lock() { ··· 1786 1797 unset file_finger_record 1787 1798 unset file_meta_record 1788 1799 1789 - [[ $_include_fingerprint == 1 ]] && file_finger_record="$(atfile.util.get_finger_record)" 1800 + file_finger_record="$(atfile.util.get_finger_record)" 1790 1801 file_meta_record="$(atfile.util.get_meta_record "$file" "$file_type")" 1791 1802 1792 1803 [[ $_output_json == 0 ]] && echo "Uploading '$file'..."