Commit MetaInfo

Revision6852f06aa6522ed2c4b696c7f8c2c327b30bbc8f (tree)
Zeit2020-01-20 19:54:47
AutorFrede Hundewadt <fh@uex....>
CommiterFrede Hundewadt

Log Message

added updater

Ändern Zusammenfassung

Diff

--- /dev/null
+++ b/.dialogrc
@@ -0,0 +1,144 @@
1+#
2+# Run-time configuration file for dialog
3+#
4+# Automatically generated by "dialog --create-rc <file>"
5+#
6+#
7+# Types of values:
8+#
9+# Number - <number>
10+# String - "string"
11+# Boolean - <ON|OFF>
12+# Attribute - (foreground,background,highlight?,underline?,reverse?)
13+
14+# Set aspect-ration.
15+aspect = 0
16+
17+# Set separator (for multiple widgets output).
18+separate_widget = ""
19+
20+# Set tab-length (for textbox tab-conversion).
21+tab_len = 0
22+
23+# Make tab-traversal for checklist, etc., include the list.
24+visit_items = OFF
25+
26+# Shadow dialog boxes? This also turns on color.
27+use_shadow = OFF
28+
29+# Turn color support ON or OFF
30+use_colors = ON
31+
32+# Screen color
33+screen_color = (CYAN,BLUE,ON)
34+
35+# Shadow color
36+shadow_color = (BLACK,BLACK,ON)
37+
38+# Dialog box color
39+dialog_color = (BLACK,WHITE,OFF)
40+
41+# Dialog box title color
42+title_color = (BLUE,WHITE,ON)
43+
44+# Dialog box border color
45+border_color = (BLACK,WHITE,ON)
46+
47+# Active button color
48+button_active_color = (WHITE,BLUE,ON)
49+
50+# Inactive button color
51+button_inactive_color = dialog_color
52+
53+# Active button key color
54+button_key_active_color = button_active_color
55+
56+# Inactive button key color
57+button_key_inactive_color = (RED,WHITE,OFF)
58+
59+# Active button label color
60+button_label_active_color = (YELLOW,BLUE,ON)
61+
62+# Inactive button label color
63+button_label_inactive_color = (BLACK,WHITE,ON)
64+
65+# Input box color
66+inputbox_color = dialog_color
67+
68+# Input box border color
69+inputbox_border_color = dialog_color
70+
71+# Search box color
72+searchbox_color = dialog_color
73+
74+# Search box title color
75+searchbox_title_color = title_color
76+
77+# Search box border color
78+searchbox_border_color = border_color
79+
80+# File position indicator color
81+position_indicator_color = title_color
82+
83+# Menu box color
84+menubox_color = dialog_color
85+
86+# Menu box border color
87+menubox_border_color = border_color
88+
89+# Item color
90+item_color = dialog_color
91+
92+# Selected item color
93+item_selected_color = button_active_color
94+
95+# Tag color
96+tag_color = title_color
97+
98+# Selected tag color
99+tag_selected_color = button_label_active_color
100+
101+# Tag key color
102+tag_key_color = button_key_inactive_color
103+
104+# Selected tag key color
105+tag_key_selected_color = (RED,BLUE,ON)
106+
107+# Check box color
108+check_color = dialog_color
109+
110+# Selected check box color
111+check_selected_color = button_active_color
112+
113+# Up arrow color
114+uarrow_color = (GREEN,WHITE,ON)
115+
116+# Down arrow color
117+darrow_color = uarrow_color
118+
119+# Item help-text color
120+itemhelp_color = (WHITE,BLACK,OFF)
121+
122+# Active form text color
123+form_active_text_color = button_active_color
124+
125+# Form text color
126+form_text_color = (WHITE,CYAN,ON)
127+
128+# Readonly form item color
129+form_item_readonly_color = (CYAN,WHITE,ON)
130+
131+# Dialog box gauge color
132+gauge_color = title_color
133+
134+# Dialog box border2 color
135+border2_color = dialog_color
136+
137+# Input box border2 color
138+inputbox_border2_color = dialog_color
139+
140+# Search box border2 color
141+searchbox_border2_color = dialog_color
142+
143+# Menu box border2 color
144+menubox_border2_color = dialog_color
--- a/README.md
+++ b/README.md
@@ -17,5 +17,5 @@ A generic *offline* installer for Arch-based ISOs. Feel free to use it for your
1717 + Boot menus assume Grub, Syslinux, and systemd-boot are installed
1818 + Default partitioning tools are gparted, cfdisk, and parted
1919 + wipe must be installed for the "secure wipe" option
20-+ xed is used to edit files
20++ geany is used to edit files
2121 + You will need to add your own post-configuration code for DMs, and specific files
--- /dev/null
+++ b/update-pbif
@@ -0,0 +1,37 @@
1+# !/bin/bash
2+#
3+# Update Pacbang Installer Script (version 1.0 - September 2015)
4+#
5+# Written by Carl Duff
6+#
7+# This script will automatically download the latest version of the installer
8+# from github.
9+#
10+# This program is free software, provided under the GNU General Public License
11+# as published by the Free Software Foundation. So feel free to copy, distribute,
12+# or modify it as you wish.
13+#
14+
15+VERSION="Update Pacbang Installer 1.0"
16+ANSWER="/tmp/.aif"
17+
18+# Check user is root, and that there is an active internet connection
19+# Seperated the checks into seperate "if" statements for readability.
20+
21+ dialog --backtitle "$VERSION" --title " Pacbang Installation Update " --infobox "\nPlease wait... Even geduld aub... Bitte warten... Παρακαλώ περιμένετε... Attendere prego... Vennligst Vent... Proszę czekać... Подождите, пожалуйста... Por favor espera...\n" 0 0
22+ sleep 2
23+
24+ if [[ $(whoami) != "root" ]]; then
25+ dialog --backtitle "$VERSION" --title " Error " --msgbox "\n- The installer must be run as root.\n- Je moet aangemeld zijn als ROOT.\n- Der Installer muss mit Superuser-Rechten gestartet werden.\n- Τον εγκαταστάτη πρέπει να εκτελούνται ως root.\n- L'installer deve essere eseguito come Root.\n- Installereren må kjøres som root.\n- Instalator musi być uruchomiony z konta administratora (root).\n- Установщик должен выполняться только администратором системы (пользователем root).\n- El instalador debe ejecutarse como root.\n" 0 0
26+ exit 1
27+ fi
28+
29+ if [[ ! $(ping -c 1 google.com) ]]; then
30+ dialog --backtitle "$VERSION" --title " Error " --msgbox "\n- Internet connection test failed.\n- Test internetverbinding mislukt.\n- Es konnte keine Verbindung zum Internet hergestellt werden.\n- οκιμή σύνδεσης στο Internet απέτυχε.\n- Il test della connessione ad Internet è fallito.\n- Internett tilkobling feilet.\n- Test połączenia z Internetem nie powiódł się.\n- Нет соединения с Интернетом.\n- Prueba de conexión a Internet fallida.\n" 0 0
31+ exit 1
32+ fi
33+
34+ clear
35+ wget -N https://github.com/fhdk/pbif/archive/master.zip
36+ unzip -o master.zip -d /
37+ /pbif-master/abif
Show on old repository browser