#!/bin/bash FOLDER="$1/system/" mkdir ${FOLDER} df -h > ${FOLDER}"system-disk" lliurex-version > ${FOLDER}"system" uname -a >> ${FOLDER}"system" lsb_release -a >> ${FOLDER}"system" lshw >> ${FOLDER}"lshw" dmesg >> ${FOLDER}"dmesg" lsusb >> ${FOLDER}"lsusb" free >> ${FOLDER}"memory" n4d-client call create_ticket "['$USER']" if [ -e "/run/n4d/tickets/$USER" ]; then PASS=$(cat /run/n4d/tickets/$USER) n4d-client -a https://server:9779 -u $USER -p $PASS call DrValentinCommon.get_var_log "['${FOLDER}log', '$USER']" fi cp /etc/hostname ${FOLDER} if [ -e "/net/mirror/llx23/conf" ]; then mkdir ${FOLDER}"mirror" cp -r /net/mirror/llx23/conf ${FOLDER}"mirror/" else touch ${FOLDER}"NO MIRROR EXISTS" fi date >> ${FOLDER}"system" curl http://lliurex.net/jammy/pool/main/l/lliurex-meta/ | grep lliurex-cdd_ |sed -e "s%.*\(lliurex-cdd_[0-9.]*\).*%\1%g" | sort -u >> ${FOLDER}"system"