mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
simplified netcfg file
This commit is contained in:
parent
e2bfef2723
commit
ddf446be2f
2 changed files with 6 additions and 29 deletions
|
@ -6,20 +6,10 @@ install ()
|
|||
BINARIES="net-auto-wired netcfg-wpa_actiond netcfg-wpa_actiond-action netcfg-menu netcfg2 netcfg"
|
||||
FILES=""
|
||||
SCRIPT=""
|
||||
for i in /usr/lib/network/*; do
|
||||
[ -f $i ] && add_file $i
|
||||
done
|
||||
for i in /usr/lib/network/connections/*; do
|
||||
add_file $i
|
||||
done
|
||||
for i in /usr/lib/network/hooks/*; do
|
||||
add_file $i
|
||||
done
|
||||
add_full_dir "/usr/lib/network/"
|
||||
add_dir "/var/run/network/interfaces"
|
||||
add_dir "/var/run/network/profiles"
|
||||
for i in /etc/network.d/examples/*; do
|
||||
add_file $i
|
||||
done
|
||||
add_full_dir "/etc/network.d/examples"
|
||||
add_dir "/etc/network.d/hooks"
|
||||
add_file "/etc/rc.d/net-profiles"
|
||||
add_file "/etc/rc.d/net-rename"
|
||||
|
|
|
@ -46,9 +46,10 @@ S_MKFSAUTO=0 # auto fs part/formatting
|
|||
S_SELECT=0 # package selection
|
||||
S_INSTALL=0 # package installation
|
||||
S_CONFIG=0 # configuration editing
|
||||
S_LILO=0 # using lilo
|
||||
S_LILO=0 # TODO: kill this - if using lilo
|
||||
S_GRUB=0 # using grub
|
||||
S_GRUB2=0 # using grub2
|
||||
S_BOOT="" # bootloader installed (set to loader name instead of 1)
|
||||
|
||||
# menu item tracker- autoselect the next item
|
||||
NEXTITEM=""
|
||||
|
@ -2162,7 +2163,7 @@ auto_addons()
|
|||
DIALOG --yesno "Would you like to install your addons packages to installed system?" 0 0 && DO_ADDON="yes"
|
||||
if [ "$DO_ADDON" = "yes" ] ; then
|
||||
DIALOG --infobox "Installing the addons packages..." 0 0
|
||||
$PACMAN -U /tmp/packages/* 2>&1 >> /tmp/pacman.log
|
||||
$PACMAN -U /tmp/packages/*
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
@ -2769,21 +2770,7 @@ EOF
|
|||
}
|
||||
|
||||
dogrub2(){
|
||||
### HACK!
|
||||
# grub2 is not part of core repository and conflicts with grub -> uninstall grub first!
|
||||
if [ "$MODE" = "ftp" ]; then
|
||||
pacman_conf_extra
|
||||
prepare_pacman
|
||||
DIALOG --infobox "Installing grub2 package..." 0 0
|
||||
pacman -S grub2 2>&1 >> /tmp/pacman.log
|
||||
else
|
||||
DIALOG --infobox "Installing grub2 package..." 0 0
|
||||
$PACMAN -U /src/core-$(uname -m)/pkg/grub2-* 2>&1 >> /tmp/pacman.log
|
||||
fi
|
||||
if [ ! -f $DESTDIR/boot/grub/grub.cfg ]; then
|
||||
DIALOG --msgbox "Error: Couldn't find $DESTDIR/boot/grub/grub.cfg Is GRUB2 installed?" 0 0
|
||||
return 1
|
||||
fi
|
||||
echo "not yet implemented"
|
||||
}
|
||||
|
||||
select_source()
|
||||
|
|
Loading…
Reference in a new issue