Advertisement
Guest User

initrd.defaults - kernel 3.x

a guest
Nov 4th, 2012
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.01 KB | None | 0 0
  1. #!/bin/ash
  2.  
  3. PATH="/usr/sbin:/usr/bin:/sbin:/bin"
  4.  
  5. # Insert ctrl character
  6. # ctrl-V then esc will print ^[
  7. # ctrl-V then ctrl-shift-m will print ^M
  8. BACK_UP="\033[1K\033[0G"
  9. NORMAL="\033[0m"
  10. WARN="\033[33;1m"
  11. BAD="\033[31;1m"
  12. BOLD="\033[1m"
  13. GOOD="\033[32;1m"
  14.  
  15. # From KNOPPIX LINUXRC
  16. # Reset fb color mode
  17. RESET="]R"
  18. # ANSI COLORS
  19. # Erase to end of line
  20. CRE="
  21. "
  22. # Clear and reset Screen
  23. CLEAR="c"
  24. # Normal color
  25. NORMAL=""
  26. # RED: Failure or error message
  27. RED=""
  28. # GREEN: Success message
  29. GREEN=""
  30. # YELLOW: Descriptions
  31. YELLOW=""
  32. # BLUE: System mesages
  33. BLUE=""
  34. # MAGENTA: Found devices or drivers
  35. MAGENTA=""
  36. # CYAN: Questions
  37. CYAN=""
  38. # BOLD WHITE: Hint
  39. WHITE=""
  40.  
  41. # Clear screen with colormode reset
  42. # echo "$CLEAR$RESET"
  43. # echo "$CLEAR"
  44. # Just go to the top of the screen
  45. # echo -n ""
  46.  
  47. KV=`uname -r`
  48. KMAJOR=`echo $KV | cut -f1 -d.`
  49. KMINOR=`echo $KV | cut -f2 -d.`
  50. KVER="${KMAJOR}.${KMINOR}"
  51. MISCOPTS='debug detect'
  52.  
  53. if [ "${KMAJOR}" -ge 3 ] || [ "${KMAJOR}" -eq 2 -a "${KMINOR}" -eq '6' ]
  54. then
  55.     KV_2_6_OR_GREATER="yes"
  56. fi
  57.  
  58. QUIET='1'
  59. ROOT_LINKS='bin sbin lib lib32 lib64 boot usr opt emul'
  60. ROOT_TREES='etc root home var'
  61. INSMOD='insmod'
  62. if [ "${KMAJOR}" -ge 3 ] || [ "${KMAJOR}" -eq 2 -a "${KMINOR}" -gt '4' ]
  63. then
  64.     KSUFF='.ko'
  65. else
  66.     KSUFF='.o'
  67. fi
  68.  
  69. REAL_ROOT=''
  70. CDROOT='0'
  71. CDROOT_DEV=''
  72. CDROOT_TYPE='auto'
  73. NEW_ROOT='/newroot'
  74. CDROOT_PATH='/mnt/cdrom'
  75. CONSOLE='/dev/console'
  76.  
  77. LOOPS='/livecd.loop /zisofs /livecd.squashfs /image.squashfs /livecd.gcloop'
  78.  
  79. DEFAULT_NFSOPTIONS="ro,nolock,rsize=1024,wsize=1024"
  80.  
  81. # Only sections that are in by default or those that
  82. # are not module groups need to be defined here...
  83. HWOPTS='keymap cache modules pata sata scsi usb firewire waitscan slowusb lvm dmraid mdadm fs net'
  84. MY_HWOPTS='modules pata sata scsi slowusb usb firewire waitscan dmraid mdadm fs net iscsi crypto'
  85. HWOPTS="$HWOPTS ataraid crypto dmraid firewire fs iscsi lvm mdadm net pata pcmcia sata scsi usb waitscan "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement