bootdisk: ui-wizard (HEAD)
malekith
malekith w pld.org.pl
Wto, 18 Lut 2003, 00:13:31 CET
Module name: bootdisk
Changes by: malekith 03/02/18 00:13:28
Modified files:
ui-wizard
Log message:
- support source_additional
Index: ui-wizard
===================================================================
RCS file: /cvsroot/bootdisk/batch-installer/ui/ui-wizard,v
diff -d -u -r1.30 -r1.31
--- ui-wizard 20 Nov 2002 20:56:42 -0000 1.30
+++ ui-wizard 17 Feb 2003 23:13:26 -0000 1.31
@@ -47,7 +47,7 @@
step_list () {
echo -n "prep source1 source2 "
if [ "$source" = net -o "$source" = nfs ] ; then
- echo -n "netdev netconf netip "
+ echo -n "source_add netdev netconf netip "
fi
echo -n "dest profile pkgs pkgsopt "
# sysconfig:
@@ -355,6 +355,53 @@
set_scsi_hostadapters
;;
esac
+ esac
+}
+
+###
+# source_add
+###
+pre_source_add () {
+}
+
+sa_item () {
+ echo "<item checked=0 id=\"$1\">$2"
+}
+
+display_source_add () {
+ nls "In addition to standard packages from distribution you might<br>"
+ nls "want to install RPMS from some other sources, beside main RPMS<br>"
+ nls "directory. For example it is quite wise to install security<br>"
+ nls "updates. You can also use one of several ,,packs''. In menu<br>"
+ nls "below you can select few packs we know about.<br><br>"
+
+ echo "source_additional: <input id='src_add' caption=\"$source_additional\">"
+ echo "<meta active='ok_but'> <button id='ok_but'><br>"
+
+ echo "<br><menu id='source_additional' checked='$source_additional'>"
+ sa_item "$source_device$(echo "$source_dir" | sed -e 's|/PLD/|/updates/security/|')/" \
+ "$(nls "Ra security updates, _r_e_c_o_m_m_e_n_d_e_d.")"
+ sa_item "$source_device$(echo "$source_dir" | sed -e 's|/PLD/|/updates/general/|')/" \
+ "$(nls "Ra general updates, risky, don't use.")"
+ case `arch` in
+ i586 )
+ sa_item "ftp://ftp.pld.org.pl/people/jack/Ra+2.4.19/i586/" "Ra+2.4.19, i586, ftp"
+ sa_item "http://ftp.pld.org.pl/people/jack/Ra+2.4.19/i586/" "Ra+2.4.19, i586, http"
+ ;;
+ i686 | athlon )
+ sa_item "ftp://ftp.pld.org.pl/people/jack/Ra+2.4.19/i686/" "Ra+2.4.19, i686, ftp"
+ sa_item "http://ftp.pld.org.pl/people/jack/Ra+2.4.19/i686/" "Ra+2.4.19, i686, http"
+ ;;
+ esac
+ echo "</menu>"
+}
+
+post_source_add () {
+ case "$res" in
+ 1 )
+ source_additional="$src_add"
+ res=1002
+ ;;
esac
}
Więcej informacji o liście dyskusyjnej pld-installer