免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1767 | 回复: 4
打印 上一主题 下一主题

[OpenBSD] 一个自动下载制作openbsd的iso文件的脚本 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-10-08 17:47 |只看该作者 |倒序浏览
mkiso.sh


  1. #!/bin/sh
  2. #
  3. # This script is to create OpenBSD bootable ISO image from binaries
  4. #

  5. VER=3.7
  6. SVER=37

  7. # Download files
  8. wget --mirror -c ftp://ftp.it.net.au/mirrors/OpenBSD/$VER/ANNOUNCEMENT
  9. wget --mirror -c ftp://ftp.it.net.au/mirrors/OpenBSD/$VER/Changelogs/
  10. wget --mirror -c ftp://ftp.it.net.au/mirrors/OpenBSD/$VER/HARDWARE
  11. wget --mirror -c ftp://ftp.it.net.au/mirrors/OpenBSD/$VER/PACKAGES
  12. wget --mirror -c ftp://ftp.it.net.au/mirrors/OpenBSD/$VER/PORTS
  13. wget --mirror -c ftp://ftp.it.net.au/mirrors/OpenBSD/$VER/README
  14. wget --mirror -c ftp://ftp.it.net.au/mirrors/OpenBSD/$VER/SIZES
  15. wget --mirror -c ftp://ftp.it.net.au/mirrors/OpenBSD/$VER/XF4.tar.gz
  16. wget --mirror -c ftp://ftp.it.net.au/mirrors/OpenBSD/$VER/ftplist
  17. wget --mirror -c ftp://ftp.it.net.au/mirrors/OpenBSD/$VER/i386/
  18. wget --mirror -c ftp://ftp.it.net.au/mirrors/OpenBSD/$VER/ports.tar.gz
  19. wget --mirror -c ftp://ftp.it.net.au/mirrors/OpenBSD/$VER/root.mail
  20. wget --mirror -c ftp://ftp.it.net.au/mirrors/OpenBSD/$VER/src.tar.gz
  21. wget --mirror -c ftp://ftp.it.net.au/mirrors/OpenBSD/$VER/sys.tar.gz
  22. wget --mirror -c ftp://ftp.it.net.au/mirrors/OpenBSD/$VER/tools/
  23. wget --mirror -c ftp://ftp.it.net.au/mirrors/OpenBSD/OpenSSH/

  24. # Now change the layout
  25. cd ftp.it.net.au/mirrors/OpenBSD/$VER/
  26. mkdir src
  27. mv XF4.tar.gz src.tar.gz sys.tar.gz src/
  28. mv ../OpenSSH .

  29. # Now we are in the directory $VER/

  30. cd ..
  31. # Now we are in the directory OpenBSD/

  32. # Now make the ISO image
  33. # For Linux
  34. #mkisofs -r -R -J -b $VER/i386/cdrom$SVER.fs -c "boot.catalog" -o ../OpenBSD-$VER-install.iso -V "OpenBSD $VER Installation" -A "OpenBSD $VER Installation" ../OpenBSD

  35. # For OpenBSD
  36. mkhybrid -r -R -J -b $VER/i386/cdrom$SVER.fs -c "boot.catalog" -o ../OpenBSD-$VER-install.iso -V "OpenBSD $VER Installation" -A "OpenBSD $VER Installation" ../OpenBSD


  37. # End of the howto
复制代码

[ 本帖最后由 l74839 于 2005-11-1 16:35 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2005-11-01 16:33 |只看该作者
应该有用..

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
3 [报告]
发表于 2005-11-01 16:44 |只看该作者
比较麻烦,用larbin,输入网址,自动给你mirro

论坛徽章:
2
丑牛
日期:2013-09-29 09:47:222015七夕节徽章
日期:2015-08-21 11:06:17
4 [报告]
发表于 2005-11-01 16:53 |只看该作者
://

这是什么?

论坛徽章:
2
IT运维版块每日发帖之星
日期:2015-10-05 06:20:00操作系统版块每日发帖之星
日期:2015-10-05 06:20:00
5 [报告]
发表于 2005-11-01 18:01 |只看该作者
自己动手,丰衣足食。

毛伯伯说的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP