BASH 33
Basic-linux.rc Guest on 3rd July 2020 12:16:25 PM
  1. #!/bin/sh
  2. PATH=/sbin:/usr/sbin:/bin:/usr/bin
  3. #e2fsck -pf /dev/hda1 2>/dev/null
  4. mount -avt nonfs
  5. mount /dev/hda2 /mnt/c
  6. mount /dev/hda5 /mnt/swap
  7. hostname BasicLinux
  8. ifconfig lo 127.0.0.1
  9. route add -net 127.0.0.0 netmask 255.0.0.0 lo
  10.  
  11. ##_ACTIVATE_CD_DRIVE_##
  12. #insmod cdrom
  13. #insmod ide-cd
  14. insmod isofs
  15. insmod parport
  16. insmod parport_pc io=0x378 irq=7
  17. #insmod plip
  18. insmod soundcore
  19. insmod sound
  20. insmod uart401
  21. insmod sb io=0x220 irq=5 dma=1 dma16=5 mpu_io=0x330
  22. insmod 8390
  23. insmod ne2k-pci
  24.  
  25. #ifconfig plip0 192.168.0.201 pointopoint 192.168.0.202 netmask 255.255.255.255 up
  26.  
  27. ####_ACTIVATE_PCMCIA_####
  28. # /etc/pcmcia/start
  29.  
  30. ###_ACTIVATE ETHERNET_###
  31. ifconfig eth0 192.168.0.1
  32. udhcpc
  33.  
  34. ##_ACTIVATE_PPP_##
  35. # insmod slhc
  36. # insmod ppp
  37.  
  38. swapon /mnt/swap/swapfile
  39. nc server 13 > /root/date.txt
  40. cut -b -21 /root/date.txt > /root/date1.txt
  41. DATE=`cat /root/date1.txt`
  42. echo $DATE
  43. date -s "$DATE"
  44. cat /etc/issue

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.