From e04140f5b5d52f5a487804ba352b3f181fe40e75 Mon Sep 17 00:00:00 2001 From: Mystery Man 535 Date: Mon, 12 Feb 2001 14:31:10 +0000 Subject: - add lspci, lspcidrake, vim-minimal - better /etc/issue - better PS1 - write embryonic tool (installation of detected drivers according to pci cards) --- rescue/make_rescue_img | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'rescue/make_rescue_img') diff --git a/rescue/make_rescue_img b/rescue/make_rescue_img index a26fa7f2c..8d35efe5a 100755 --- a/rescue/make_rescue_img +++ b/rescue/make_rescue_img @@ -31,6 +31,13 @@ sub install_ { sub install { install_($_[0], "-a") } sub install_lib { install_($_[0], "") } +sub installown($$) { + my ($own, $dir) = @_; + return if -e "$tmp$dir$own"; + commands::mkdir_("-p", "$tmp$dir") unless -d "$tmp$dir"; + _ "$sudo cp -a $own $tmp$dir"; +} + _ "$sudo rm -rf $tmp" if -e $tmp; _ "mkdir $tmp"; _ 'find . -name "*~" | xargs rm -f'; @@ -58,6 +65,8 @@ foreach (cat_("aliases")) { } _ "cp ../modules/modules.{cz*,dep} $tmp/modules"; +installown("drvinst", "/usr/bin"); + _ "install -s kernel_read_part $tmp/sbin" if $arch =~ /i.86/; __ "$sudo strip $tmp/{lib,bin,sbin}/* $tmp/usr/{bin,sbin}/* 2>/dev/null"; -- cgit v1.2.1