summaryrefslogtreecommitdiffstats
path: root/move
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-11-05 16:52:22 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-11-05 16:52:22 +0000
commitf9a813517e4c2d76e5b4e1731f1d9e029a5c784d (patch)
treeed76be079c3ef52e910de8389ccd2291bcffe610 /move
parent68d279807f814790a8a711b0e39e340f663acc0d (diff)
downloaddrakx-backup-do-not-use-f9a813517e4c2d76e5b4e1731f1d9e029a5c784d.tar
drakx-backup-do-not-use-f9a813517e4c2d76e5b4e1731f1d9e029a5c784d.tar.gz
drakx-backup-do-not-use-f9a813517e4c2d76e5b4e1731f1d9e029a5c784d.tar.bz2
drakx-backup-do-not-use-f9a813517e4c2d76e5b4e1731f1d9e029a5c784d.tar.xz
drakx-backup-do-not-use-f9a813517e4c2d76e5b4e1731f1d9e029a5c784d.zip
auto configure network
Diffstat (limited to 'move')
-rwxr-xr-xmove/make_live6
-rw-r--r--move/move.pm7
2 files changed, 8 insertions, 5 deletions
diff --git a/move/make_live b/move/make_live
index 49437af91..3761ba30f 100755
--- a/move/make_live
+++ b/move/make_live
@@ -6,7 +6,7 @@ use pkgs;
my @langs = map { /^../; $& } split /\s/, (cat_('move.pm') =~ /ALLOWED_LANGS = qw\((.*)\)/)[0];
-@ARGV == 0 or die "usage: make_live\n";
+@ARGV <= 1 or die "usage: make_live [live_location=/tmp/live_tree]\n";
sub installPackages {
rename "/etc/rpm/macros", "/etc/rpm/macros.";
@@ -33,6 +33,7 @@ sub installPackages {
qw(XFree86-server XFree86-xfs XFree86-FBDev),
qw(acpi acpid), #- so that removing acpi=ht will work
qw(mountloop), #- crypted folders
+ qw(zcip dhcpcd ppp kdenetwork-kppp rp-pppoe pptp-adsl speedtouch speedtouch_mgmt nfs-utils-clients samba-client tmdns wireless-tools adiusbadsl), #- network conf
],
});
@@ -54,7 +55,8 @@ sub installPackages {
}
my $cwd = chomp_(`pwd`);
-$::prefix = "/tmp/live_tree";
+$::prefix = $ARGV[0] || '/tmp/live_tree';
+print "Making live in $::prefix directory.\n";
{
eval { fs::umount("$::prefix/proc") };
diff --git a/move/move.pm b/move/move.pm
index 9a1abdf8a..6fb773dfc 100644
--- a/move/move.pm
+++ b/move/move.pm
@@ -30,7 +30,7 @@ sub init {
#- rw things
mkdir "/$_" foreach qw(home mnt root root/tmp etc var);
- mkdir "/etc/$_" foreach qw(X11 cups);
+ mkdir "/etc/$_" foreach qw(X11);
touch '/etc/modules.conf';
symlinkf "/proc/mounts", "/etc/mtab";
@@ -38,12 +38,12 @@ sub init {
#- sudoers must a file, not a symlink
system("cp /image/etc/{passwd,group,sudoers} /etc");
- system("cp -R /image/etc/cups/* /etc/cups");
+ mkdir_p("/etc/$_"), system("cp -R /image/etc/$_/* /etc/$_") foreach qw(cups profile.d sysconfig/network-scripts);
#- ro things
symlinkf_short("/image/etc/$_", "/etc/$_")
foreach qw(alternatives shadow man.config services shells pam.d security inputrc ld.so.conf
- DIR_COLORS bashrc profile profile.d rc.d init.d devfsd.conf gtk-2.0 pango fonts modules.devfs
+ DIR_COLORS bashrc profile rc.d init.d devfsd.conf gtk-2.0 pango fonts modules.devfs
dynamic gnome-vfs-2.0 gnome-vfs-mime-magic gtk gconf menu menu-methods nsswitch.conf default login.defs
skel ld.so.cache openoffice xinetd.d);
symlinkf_short("/image/etc/X11/$_", "/etc/X11/$_")
@@ -102,6 +102,7 @@ sub install2::startMove {
#- automatic printer, timezone, network configs
require install_steps_interactive;
+ install_steps_interactive::configureNetwork($o);
install_steps_interactive::summaryBefore($o);
require install_any;