-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit
More file actions
executable file
·47 lines (36 loc) · 1013 Bytes
/
init
File metadata and controls
executable file
·47 lines (36 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
# Copyright (c) 2012-2018 CIYAM Developers
./hash_pwd
password=`xclip -o`
if [ ! -d Desktop ]; then
mkdir Desktop
fi
echo "Building ZBar, Bitcoin and Vanitygen while generating GPG keys..."
./build-zbar &
./build-bitcoin &
./build-vanitygen &
g++ -o w w.cpp &
if [ ! "$1" = "restore" ]; then
tmp=$HOME/x
echo "%echo Generating the master key..." >$tmp
echo "Key-Type: DSA" >>$tmp
echo "Key-Length: 1024" >>$tmp
echo "Subkey-Type: ELG-E" >>$tmp
echo "Subkey-Length: 1024" >>$tmp
echo "Name-Real: tux master" >>$tmp
echo "Name-Email: tux@domain.net" >>$tmp
echo "Expire-Date: 0" >>$tmp
echo "Passphrase: $password">>$tmp
gpg --batch --gen-key $tmp
rm $tmp
fi
gpg --batch --gen-key gen-key.info
gpg --armor --export local >local.pub.gpg
./qr local.pub.gpg
if [ ! "$1" = "restore" ]; then
gpg --armor --export tux >tux.pub.gpg
./qr tux.pub.gpg
gpg --armor --export-secret-key tux >tux.sec.gpg
split -b 1024 -d tux.sec.gpg tux.sec.gpg.
ls -1 tux.sec.gpg.0* | xargs -n1 ./qr
fi