å æ¥ãæããã¹ã£ã¦(èªå® ã®ãã·ã³ã§)coreutilsãã°ã£ããåé¤ãã¦ãã¾ãã¾ããã
coreutilsã¨ã¯ãªã«ãã¨ããã¨ãCUIã§ãªã«ãããã®ãªãã¬ã¼ã·ã§ã³ãè¡ãã¨ãã«å¿ è¦ã«ãªãã³ãã³ãã®ã»ããã§ãã
/bin/cat /bin/tac /bin/cp /bin/dd /bin/echo /bin/false /bin/ln /bin/ls /bin/mkdir /bin/mknod /bin/mv /bin/rm (snip)
ãªã®ã§ãããæ¶ãã¦ãã¾ãã¨ããã¡ã¤ã«ãæ¶ããããã£ã¬ã¯ããªãä½ã£ããã§ããªããã©Firefoxã¯åãã¨ããããããããªãç¶æ ã«ãªãã¾ãã
ãããã¼ãªãã¦ã²ã¨ãããéãã§ããããã¦ç´ããã¨æã£ããã§ããã件ã®ãã·ã³ã¯ã½ã¼ã¹ããã³ã³ãã¤ã«ããã¿ã¤ãã®ããã±ã¼ã¸ã·ã¹ãã ãªãã§ããã¤ããªãããã¾ãã¬ãã§ã¯ã§ã¯ã¨ã³ã³ãã¤ã«ããã«ãcoreutilsãªã³ãã³ã使ãã¾ããã®configureãå®äºããããããªãã¼
çµå±ãä»ã®ãã·ã³ã® busybox (Debian etchã®busybox-static) ããã£ã¦ãã¦ãããã使ã£ã¦coreutilsãã¤ã³ã¹ãã¼ã«ããªããã¦å¾©æ§ã
busyboxã¯ãcoreutilsãå«ãGNUã®*utilsã·ãªã¼ãºã®ã³ãã³ãã®ãµãã»ãã(çãªãã®)ããªã½ã¼ã¹ã®å°ãªãç°å¢ã§ã®ä½¿ç¨ã念é ã«ããã¦ããã®ã§ãFDã§èµ·åããLinux(ãªã¤ã)ã¨ãLinuxãã¼ã¹ã®PDAã¨ãã§ä½¿ããã¦ãã®ãè¦ã人ãå¤ãããããªããã¨æãã¾ãã
ã§ãä¸å¼ã³ãã³ããæã£ã¦ããã®ã§ããã£ããã¤ã³ã¹ãã¼ã«ãã¦ããã¨ããããã¨ãã«å½¹ã«ç«ã¤ããã§ãã
ãã¨ã¬ã¹ãã¥ã¼ç®çã§å ¥ããããªããbusyboxã¯staticçã®æ¹ãããããããªããã¨æãã¾ã:
- /lib/*ãæ¶å¤±ãã¦ãstaticãªã使ããã®ã§ã¾ã æ¦ãã
- ãã£ã¹ããªã¨ãéã£ã¦ãä»ã®ãã·ã³ã«ã³ãã¼ãã¦å©ãã¦ããããã
ãããªããã§ãstaticãªbusyboxãå ¥ãã¦ã
$ ls -l /static/ lrwxrwxrwx 1 root root 12 Apr 20 14:40 [ -> /bin/busybox lrwxrwxrwx 1 root root 12 Apr 20 14:40 [[ -> /bin/busybox lrwxrwxrwx 1 root root 12 Apr 20 14:40 addgroup -> /bin/busybox lrwxrwxrwx 1 root root 12 Apr 20 14:40 adduser -> /bin/busybox lrwxrwxrwx 1 root root 12 Apr 20 14:40 adjtimex -> /bin/busybox lrwxrwxrwx 1 root root 12 Apr 20 14:40 ar -> /bin/busybox lrwxrwxrwx 1 root root 12 Apr 20 14:40 arp -> /bin/busybox lrwxrwxrwx 1 root root 12 Apr 20 14:40 arping -> /bin/busybox lrwxrwxrwx 1 root root 12 Apr 20 14:40 ash -> /bin/busybox (snip)
ãªãã¦ããsymlinkãã¯ãã¾ããã¾ãããå¤åã3å¹´å¾ãããã«åãããããã£ã¦ããã®æ¥ã«busyboxã¤ã³ã¹ãã¼ã«ãããªã¬ã«æè¬ï¼ããªã¨ã³ããªãæ¸ããã¨ã«ãªãã¨æãã¾ãã
æå¾ã«ï¼ã¤(以åã師å ã«æãã£ã)TIPSãã
- ls ã使ããªãã¦ããecho * ã§ãã¡ã¤ã«ã®ä¸è¦§ã¯è¦ããã