daily pastebin goal
16%
SHARE
TWEET

/initrd/init (tharpup - puppylinux)

s243a Jan 8th, 2018 (edited) 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Lines 836 to 883 on /initrd/init (tharpup - puppylinux) - https://www.pearltrees.com/s243a/initrd-init/id19535893/item224278321
  2. #Lines 896 to 944 of https://github.com/puppylinux-woof-CE/woof-CE/blob/c96d661c2232caef1d69c693de673fb0e54796f8/initrd-progs/0initrd/init#L896 (13 Mar 2018)
  3.  
  4. #pmedia= usbflash|usbhd|usbcd|ataflash|atahd|atacd|atazip|scsihd|scsicd|cd
  5. [ $pmedia ] && PMEDIA=$pmedia #boot parameter, broad category of boot media. ex: cd.
  6. [ $psubdir ] && PSUBDIR=$psubdir #boot parameter, directory for puppy files. ex: puppy220
  7. [ $psavemark ] && PSAVEMARK=$psavemark #100913 partition number that has/will-have save-file.
  8.  
  9. [ $PSUBDIR ] && [ "${PSUBDIR:0:1}" != "/" ] && PSUBDIR="/${PSUBDIR}" #add leading /.
  10.  
  11. [ $pdev1 ] && PDRV=$pdev1 #boot parameter, partition have booted off. ex: hda3
  12. #100915 requested by technosaurus (formats get changed further down)...
  13. [ $pdrv ] && PDRV=$pdrv #format partition:<path><filename> ex: sda2:/slacko/puppy_slacko_6.3.0.sfs
  14. [ $pupsfs ] && PDRV=$pupsfs
  15. [ $zdrv ] && ZDRV=$zdrv #ex: sda2:/slacko/zdrv_slacko_6.3.0.sfs
  16. [ $fdrv ] && FDRV=$fdrv
  17. [ $adrv ] && ADRV=$adrv
  18. [ $ydrv ] && YDRV=$ydrv
  19. #<partition>:<filename>, for savefile/savefolder. <partition> can be a name or Label or UUID
  20. [ $psave ] && PSAVE=$psave #ex: sdb4:/puppy/tahr/tahrsave or smark or 49baa82d-8c69:tahrsave
  21. #list of kernel modules to load, ex: pimod=hid-logitech-dj.ko,kernel/drivers/hid/hid-multitouch.ko
  22. [ $pimod ] && PIMOD=$pimod
  23. #specify partition for Underdog Linux (refer also underdog.lnx).
  24. [ $underdog ] && UNDERDOG=$underdog
  25. #[ $pdebug ] && PDEBUG=$pdebug
  26.  
  27. PDEBUG=1
  28. TOTAL_SIZEK_SFS_RAM=0
  29.  
  30. # show menu with pupsaves
  31. [ $psavemenu ] && PSAVEMENU=$psavemenu
  32.  
  33. RDSH=""
  34. if [ "$pfix" ];then
  35.  for ONEFIX in $(echo -n "$pfix" | tr ',' ' ')
  36.  do
  37.   case $ONEFIX in
  38.    ram)     PRAMONLY="yes";;      #run in ram only (do not load ${DISTRO_FILE_PREFIX}save).
  39.    rdsh)    RDSH="yes";;          #exit to shell in initial ramdisk.
  40.    nox)     PNOX="yes";;          #do not start X.
  41.    clean)   PCLEAN="yes";;        #force version upgrade and cleanup.
  42.    trim)    PTRIM="yes";;         #add "discard" to mount options if SSD
  43.    copy)    PCOPY="yes";;         #copy .sfs files into ram.
  44.    nocopy)  PNOCOPY="yes";;        #do not copy .sfs files into ram (default is copy if enough ram).
  45.    fsck)    PFSCK="yes";;         #do a fsck of ${DISTRO_FILE_PREFIX}save file.
  46.    fsckp)   PFSCKP="yes";;        #do fsck before first mount of ext partitions
  47.    [0-9]*)  PIGNORELAST=$ONEFIX;; #blacklist last $ONEFIX folders (multisession).
  48.    psavebkp)PSAVEBKP='yes';;      #don't ignore pupsaves created by Pupsave Backup
  49.    *)       echo "pfix=$ONEFIX is not a known boot parameter";;
  50.   esac
  51.  done
  52. fi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top