Skip to content

Commit

Permalink
simplify ubase install
Browse files Browse the repository at this point in the history
  • Loading branch information
falconindy committed Apr 19, 2011
1 parent 88c21fa commit 54429e3
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions ubase
@@ -1,6 +1,6 @@
install() { install() {
# base filesystem structure # base filesystem structure
for dir in proc sys dev bin sbin usr{,/bin,/lib,/sbin} run; do for dir in proc sys dev {,s}bin usr{,/bin,/lib,/sbin} run; do
add_dir /$dir add_dir /$dir
done done


Expand All @@ -9,21 +9,15 @@ install() {
add_file /etc/modprobe.d/usb-load-ehci-first.conf add_file /etc/modprobe.d/usb-load-ehci-first.conf


# udev rules # udev rules
for rules in 50-firmware.rules 50-udev-default.rules 60-persistent-storage.rules 80-drivers.rules; do for rules in {50-firmware,50-udev-default,60-persistent-storage,80-drivers}.rules; do
add_file /lib/udev/rules.d/$rules add_file /lib/udev/rules.d/$rules
done done


# udev tools # udev tools
for tool in firmware ata_id path_id scsi_id usb_id; do for tool in firmware {ata,path,scsi,usb}_id; do
add_file /lib/udev/$tool add_file /lib/udev/$tool
done done


# devices
add_device /dev/null c 1 3
add_device /dev/zero c 1 5
add_device /dev/console c 5 1
add_device /dev/mem c 1 1

# necessary binary tools # necessary binary tools
add_binary /lib/initcpio/cinit /init add_binary /lib/initcpio/cinit /init
add_binary /lib/initcpio/busybox /bin/busybox add_binary /lib/initcpio/busybox /bin/busybox
Expand All @@ -35,7 +29,7 @@ install() {
} }


help() { help() {
cat <<HELPEOF cat <<HELPEOF
This hook sets up all initial directories and installs base utilities, This hook sets up all initial directories and installs base utilities,
including udev. including udev.
HELPEOF HELPEOF
Expand Down

0 comments on commit 54429e3

Please sign in to comment.