Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 7th, 2013  |  syntax: Bash  |  size: 0.46 KB  |  views: 50  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/bash
  2.  
  3. build() {
  4.         add_dir /mnt
  5.         add_module ext3
  6.         add_binary cpio
  7.         add_binary xz
  8.         add_binary gzip
  9.         add_binary lzop
  10.     add_binary fsck.ext4
  11.     add_symlink /usr/bin/fsck.ext2 fsck.ext4
  12.     add_symlink /usr/bin/fsck.ext3 fsck.ext4
  13.    
  14.     add_runscript
  15. }
  16.  
  17. help() {
  18.     cat <<HELPEOF
  19. This hook creates the tmpfs root, mounts the device that contains the
  20. rootfs and extracts it into the tmpfs root.
  21. HELPEOF
  22. }
  23.  
  24. # vim: set ft=sh ts=4 sw=4 et: