Browse Source

Small tweaks, still not usable

jcmdln 5 months ago
parent
commit
cf5a7bd373
1 changed files with 24 additions and 25 deletions
  1. 24
    25
      gein.sh

+ 24
- 25
gein.sh View File

@@ -72,35 +72,11 @@ kernel_autobuild="true"
72 72
 #kernel_config=""
73 73
 
74 74
 
75
-#
75
+# I would like this section to be where a user defines their partitions,
76 76
 #
77 77
 
78 78
 #partition_boot=""
79 79
 #partition_uefi=""
80
-#partition_swap=""
81
-
82
-
83
-#
84
-#
85
-
86
-case "$(uname -m)" in
87
-    i486|i586)
88
-        cpu_dir="x86"
89
-        cpu_arch="i486";;
90
-    i686|x86|x86_32)
91
-        cpu_dir="x86"
92
-        cpu_arch="i686";;
93
-    amd64|x86_64)
94
-        cpu_dir="amd64"
95
-        cpu_arch="amd64";;
96
-
97
-    *)
98
-        echo "gein: error: your architecture has not been defined yet." \
99
-             "Submit an issue with the output of 'uname -m'" | fold -s
100
-        echo "gein: Exiting..." \
101
-            | fold -s
102
-        exit 1
103
-esac
104 80
 
105 81
 
106 82
 #
@@ -161,6 +137,29 @@ CONFIG() {
161 137
 }
162 138
 
163 139
 
140
+# This section determines the current system architecture, which is
141
+# used to download the correct Stage 3 archive in the following section.
142
+
143
+case "$(uname -m)" in
144
+    i486|i586)
145
+        cpu_dir="x86"
146
+        cpu_arch="i486";;
147
+    i686|x86|x86_32)
148
+        cpu_dir="x86"
149
+        cpu_arch="i686";;
150
+    amd64|x86_64)
151
+        cpu_dir="amd64"
152
+        cpu_arch="amd64";;
153
+
154
+    *)
155
+        echo "gein: error: your architecture has not been defined yet." \
156
+             "Submit an issue with the output of 'uname -m'" | fold -s
157
+        echo "gein: Exiting..." \
158
+            | fold -s
159
+        exit 1
160
+esac
161
+
162
+
164 163
 #
165 164
 #
166 165
 

Loading…
Cancel
Save