ça avance
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/bash
|
||||
######### Script d'etablissement de la fiche technique d'un PC #########
|
||||
|
||||
FILE="identification.txt"
|
||||
|
23
SOURCES/sync_check.sh
Normal file → Executable file
23
SOURCES/sync_check.sh
Normal file → Executable file
@ -1,5 +1,18 @@
|
||||
#!/bin/sh
|
||||
SERIAL=`grep -is -m 1 "serial number" ./identification.txt`
|
||||
DIRNAME=${SERIAL##* }
|
||||
mkdir
|
||||
rsync -aP *.txt lalis69.ddns.net::lalis-ordis
|
||||
#!/usr/bin/sh
|
||||
#./identPC.sh
|
||||
/usr/bin/kate ./checklist.txt
|
||||
grep -is -m 2 "numéro de série" ./identification.txt >tmp.txt
|
||||
while read LIGNE
|
||||
do
|
||||
TMP=${LIGNE##*}
|
||||
if [ "$TMP" != "Number" ];then
|
||||
DIRNAME="$DIRNAME$TMP"
|
||||
break
|
||||
else
|
||||
DIRNAME="CM_"
|
||||
fi
|
||||
|
||||
done < tmp.txt
|
||||
rm -f tmp.txt
|
||||
mkdir $DIRNAME
|
||||
rsync --port 10073 -aP *.txt "lalis69.ddns.net::lalis-ordis/$DIRNAME"
|
||||
|
19
SOURCES/test.desktop
Executable file
19
SOURCES/test.desktop
Executable file
@ -0,0 +1,19 @@
|
||||
[Desktop Entry]
|
||||
Comment[fr_FR]=Outils de test et de inventaire matériel de LALIS
|
||||
Comment=Inventory and test tool for LALIS
|
||||
Exec=kate ./checklist.txt;kdesu -u root /usr/local/bin/sync_check.sh
|
||||
GenericName[fr_FR]=Test
|
||||
GenericName=Test
|
||||
Icon=bleachbit
|
||||
MimeType=
|
||||
Name[fr_FR]=Test
|
||||
Name=Test
|
||||
Path=$HOME/Bureau
|
||||
StartupNotify=true
|
||||
Terminal=true
|
||||
TerminalOptions=\s--noclose
|
||||
Type=Application
|
||||
X-DBUS-ServiceName=
|
||||
X-DBUS-StartupType=
|
||||
X-KDE-SubstituteUID=false
|
||||
X-KDE-Username=
|
Reference in New Issue
Block a user