コマンド追加

busyboxmount.cifsを追加してみる

networking/mount_cifs.c

samba/source/client/mount.cifs.cをbusybox/networking/mount_cifs.cにコピー
(.を_にリネームしている点に注意)
#include "busybox.h"を追加
mainをmount_cifs_mainに変更

各ファイルに以下を挿入
前後のコマンドにあわせてアルファベット順になるようにする
なお、_はアルファベット小文字よりも前

networking/Makefile.in

NETWORKING-$(CONFIG_MOUNT_CIFS)   += mount_cifs.o

networking/Config.in

config CONFIG_MOUNT_CIFS
  bool "mount_cifs"
  default n
  help
    This is mount.cifs

include/usage.h

#define mount_cifs_trivial_usage \
  "<remotetarget> <dir> -o <options>"
#define mount_cifs_full_usage \
  "省略"
#define mount_cifs_example_usage \
  "省略"

include/applets.h

USE_MOUNT_CIFS(APPLET_ODDNAME(mount.cifs, mount_cifs, _BB_DIR_SBIN, _BB_SUID_NEVER, mount_cifs))

これでmake menuconfigを実行するとmount_cifsがメニューに加わるのでyで追加してmakeすればよい。

参考
busybox/docs/new-applet-HOWTO.txt