����AOS�t���̃V�F���X�N���v�g��ǂ�ł����B�����̐l���g���Ă���X�N���v�g��ǂނ��ƂŁA�V�F���X�N���v�g�Ȃ�ł͂̏������A�e�N�j�b�N��g�ɕt���邱�Ƃ��ł���͂����i�ҏW���j
�@�O������}�X�^�[����ɂ��A�y��̉��t���o����ɂ��A��B����ɂ͂������K���邾���ł̓_�����B�f���炵������{�������āA�悭�ώ@���A���x���܂˂邱�Ƃ��K�v���B����{����Z�p���u���ށv���Ƃ�����Ƃ������Ƃ��B
�@�v���O���~���O�ł��������Ƃ�������Ǝv���B���@���o���āA�����Ђ�����v���O���������������ł͂Ȃ��Ȃ����ɂȂ�Ȃ��B�X�L���̂���l�̃R�[�h�����āA�Z�p�𓐂����B�J���`�[���̃����o�[���ꂼ�ꂪ�������R�[�h����������āA���݂��ɔ�]�������u�R�[�h���r���[�v�ɎQ�����Ă���A���邢�̓��[�_�[�Ƃ��Ď�Â��Ă���Ƃ����l�͑����Ǝv���B���̃R�[�h���r���[���A�l����Z�p�𓐂ޗǂ��@��ƌ����邾�낤�B
�@����́AOS�ɕt������V�F���X�N���v�g��ǂ݉����āA�Z�p�𓐂�ł������Ǝv���B��Ɗ��ɂ́AVim�A�ڂ̑�8���ŏЉ��PC-BSD 9.0���g�p����B
�@����ł́A�ǂ̃X�N���v�g��ǂނ������߂悤�BFreeBSD�̃��[�U�[�����h�v���O�����Ƃ��ăC���X�g�[������Ă���V�F���X�N���v�g���ǂꂭ�炢����̂����ׂĂ݂�B�R���\�[�����J���āA�ufind�v�R�}���h�𗘗p���Č�������ƁA�ȉ��̂悤��100�{�����邱�Ƃ�������
# find /bin /sbin /usr/bin /usr/sbin /libexec /usr/libexec/ -exec file '{}' ';' | grep shell /sbin/dhclient-script: POSIX shell script text executable /sbin/mount_auto: POSIX shell script text executable /sbin/nextboot: POSIX shell script text executable /sbin/resolvconf: POSIX shell script text executable /usr/bin/cvsbug: POSIX shell script text executable /usr/bin/neqn: POSIX shell script text executable /usr/bin/grog: POSIX shell script text executable /usr/bin/nroff: POSIX shell script text executable /usr/bin/psroff: POSIX shell script text executable /usr/bin/rcsfreeze: POSIX shell script text executable /usr/bin/send-pr: POSIX shell script text executable /usr/bin/sendbug: POSIX shell script text executable /usr/bin/krb5-config: POSIX shell script text executable /usr/bin/alias: POSIX shell script text executable /usr/bin/bg: POSIX shell script text executable /usr/bin/cd: POSIX shell script text executable /usr/bin/command: POSIX shell script text executable /usr/bin/fc: POSIX shell script text executable /usr/bin/fg: POSIX shell script text executable /usr/bin/getopts: POSIX shell script text executable /usr/bin/hash: POSIX shell script text executable /usr/bin/jobs: POSIX shell script text executable /usr/bin/read: POSIX shell script text executable /usr/bin/type: POSIX shell script text executable /usr/bin/ulimit: POSIX shell script text executable /usr/bin/umask: POSIX shell script text executable /usr/bin/unalias: POSIX shell script text executable /usr/bin/wait: POSIX shell script text executable /usr/bin/cpasswd: POSIX shell script text executable /usr/bin/gzexe: POSIX shell script text executable /usr/bin/zdiff: POSIX shell script text executable /usr/bin/zforce: POSIX shell script text executable /usr/bin/zmore: POSIX shell script text executable /usr/bin/znew: POSIX shell script text executable /usr/bin/zcmp: POSIX shell script text executable /usr/bin/lesspipe.sh: POSIX shell script text executable /usr/bin/zless: POSIX shell script text executable /usr/bin/bzless: POSIX shell script text executable /usr/bin/xzless: POSIX shell script text executable /usr/bin/lzless: POSIX shell script text executable /usr/bin/lorder: POSIX shell script text executable /usr/bin/man: POSIX shell script text executable /usr/bin/apropos: POSIX shell script text executable /usr/bin/manpath: POSIX shell script text executable /usr/bin/whatis: POSIX shell script text executable /usr/bin/mkdep: POSIX shell script text executable /usr/bin/pagesize: POSIX shell script text executable /usr/bin/shar: POSIX shell script text executable /usr/bin/clear: POSIX shell script text executable /usr/bin/unifdefall: POSIX shell script text executable /usr/bin/vgrind: POSIX shell script text executable /usr/bin/yyfix: POSIX shell script text executable /usr/bin/lp: POSIX shell script text executable /usr/sbin/dtruss: POSIX shell script text executable /usr/sbin/adduser: POSIX shell script text executable /usr/sbin/rmuser: POSIX shell script text executable /usr/sbin/bsdinstall: POSIX shell script text executable /usr/sbin/crashinfo: POSIX shell script text executable /usr/sbin/freebsd-update: POSIX shell script text executable /usr/sbin/manctl: POSIX shell script text executable /usr/sbin/mergemaster: POSIX shell script text executable /usr/sbin/ndisgen: POSIX shell script text executable /usr/sbin/pc-sysinstall: POSIX shell script text executable /usr/sbin/periodic: POSIX shell script text executable /usr/sbin/portsnap: POSIX shell script text executable /usr/sbin/service: POSIX shell script text executable /usr/sbin/spkrtest: POSIX shell script text executable /usr/sbin/ypinit: POSIX shell script text executable /usr/sbin/zzz: POSIX shell script text executable /libexec/resolvconf/libc: POSIX shell script text executable /libexec/resolvconf/dnsmasq: POSIX shell script text executable /libexec/resolvconf/named: POSIX shell script text executable /libexec/resolvconf/pdnsd: POSIX shell script text executable /libexec/resolvconf/unbound: POSIX shell script text executable /usr/libexec/bsdinstall/auto: POSIX shell script text executable /usr/libexec/bsdinstall/adduser: POSIX shell script text executable /usr/libexec/bsdinstall/checksum: POSIX shell script text executable /usr/libexec/bsdinstall/config: POSIX shell script text executable /usr/libexec/bsdinstall/docsinstall: POSIX shell script text executable /usr/libexec/bsdinstall/hostname: POSIX shell script text executable /usr/libexec/bsdinstall/jail: POSIX shell script text executable /usr/libexec/bsdinstall/keymap: POSIX shell script text executable /usr/libexec/bsdinstall/mirrorselect: POSIX shell script text executable /usr/libexec/bsdinstall/mount: POSIX shell script text executable /usr/libexec/bsdinstall/netconfig: POSIX shell script text executable /usr/libexec/bsdinstall/netconfig_ipv4: POSIX shell script text executable /usr/libexec/bsdinstall/netconfig_ipv6: POSIX shell script text executable /usr/libexec/bsdinstall/rootpass: POSIX shell script text executable /usr/libexec/bsdinstall/services: POSIX shell script text executable /usr/libexec/bsdinstall/time: POSIX shell script text executable /usr/libexec/bsdinstall/umount: POSIX shell script text executable /usr/libexec/bsdinstall/wlanconfig: POSIX shell script text executable /usr/libexec/lpr/ru/bjc-240.sh.sample: POSIX shell script text executable /usr/libexec/save-entropy: POSIX shell script text executable /usr/libexec/locate.updatedb: POSIX shell script text executable /usr/libexec/locate.mklocatedb: POSIX shell script text executable /usr/libexec/locate.concatdb: POSIX shell script text executable /usr/libexec/makewhatis.local: POSIX shell script text executable /usr/libexec/catman.local: POSIX shell script text executable /usr/libexec/yppwupdate: POSIX shell script text executable #
�@���ꂾ���ł������Ȑ������A/etc/�f�B���N�g���������Ώۂɉ�����ƁA�����200�{�ȏ�̃V�F���X�N���v�g��������B�������A/etc/�ɑ��݂���V�F���X�N���v�g��rcNG�̂悤�ȁA�����W�����C�u�����ł��邱�Ƃ������B�ŏ��Ɏ��グ��ɂ͓�����낤�B�����ł͂܂��A��قnj�������100�{�̃V�F���X�N���v�g���A1�{�ڂł���dhclient-script����ǂ�ł����A����{�ƂȂ镔�������グ�ĉ�����Ă����B
�@dhclient-script��DHCP�N���C�A���g�v���O�����ł���dhclient(8)���Ăяo���X�N���v�g�ŁADHCP�T�[�o��IP�A�h���X��v������O�ɁA�l�b�g���[�N�C���^�[�t�F�C�X�̏����ݒ���ς܂���B�A�h���X���擾������A������`�F�b�N���A�C���^�[�t�F�C�X�ɐݒ肷��Ȃǂ̋@�\�������B
�@�܂��͈ȉ��̃R�[�h�Ђ����Ăق����B[�͑g�ݍ��݃R�}���h�Ƃ��Ď�������Ă�����̂ŁA�R�}���h��test(1)�Ɠ�����ڂ������Ă���B�V�F���X�N���v�g���[�U�[�Ȃ�A���R�̂悤�Ɏg���Ă���@�\���낤�B���Ȃ݂ɁA�g�ݍ��݃R�}���h�ƂȂ��Ă���̂�[�����B]�́A[�̈����ł���B
if [ -x /usr/bin/logger ]; then LOGGER="/usr/bin/logger -s -p user.notice -t dhclient" else LOGGER=echo fi
�@[ ]���ɂ���u-x�v�́A���̌�Ɏw�肷��t�@�C�������݂��Ă���A���A���ꂪ���s�\�ł���Ȃ�^�ƂȂ�I�v�V�����w�肾�B�܂�A���̃T���v���ł́u/usr/bin/logger�v�ilogger(1)�j�Ƃ������s�\�ȃt�@�C�������݂���Ȃ�Ƃ���������ݒ肵�Ă���A���ʎ���ł��̌�̏�����U�蕪����悤�ɂ��Ă���̂��B
�@�����Œ��ڂ������̂�logger(1)�̑��݂��m�F���镔���̏��������B���̂悤�ɏ����Ă��܂��l�͑����Ǝv���B
if type logger > /dev/null 2>&1; then LOGGER="logger -s -p user.notice -t dhclient" else LOGGER=echo fi
�@�g�ݍ��݃R�}���h�ł���type���g���āA�R�}���h�̑��݂��m�F����̂́A�V�F���X�N���v�g�����Ƃ��ɂ͂悭��邱�Ƃ��B���̃T���v���ł̓t�@�C�������w�肵�đ��݂��m�F���Ă���Btype�������Ƃ��ăt�@�C�������t���邩�炾�B
�@�������A��ɋ�������ł́A��p�X�Ńt�@�C�����w�肵�āA�R�}���h�����݂��邩�ǂ����ׂĂ���B����͂����܂��ȕ�����r�������Ƃ����_��������B
�@Ports Collection��PBI�Amake install�ȂǂŃ��[�U�[���C���X�g�[������T�[�h�p�[�e�B���A�v���P�[�V�����Ƃ͈قȂ�A���[�U�[�����h�ɍŏ�����C���X�g�[�������X�N���v�g�́A�t�@�C���̏ꏊ�����܂��Ă���B
�@�g�ݍ��݃R�}���htype���g���āA�ulogger�v�Ƃ����v���O���������݂��邩�ǂ����ׂ�Ƃ��悤�B���̏ꍇ�A���ϐ�PATH�̉e�����āA/usr/bin/logger�������Ώۂ���O��邱�Ƃ�����B�Ⴆ�A/usr/local/bin/logger�̑��݂��m�F���Ă��܂��\��������̂��B
�@�V�F���X�N���v�g�̓���͊��ϐ��̉e����傫����B�X�N���v�g���쐬�������ł͂�����Ɠ����Ă������A���s���郆�[�U�[���ς������A���s��������ς�����肷��Ɠ����Ȃ��Ȃ�Ƃ������Ƃ͂悭����BOS�ɕt������V�F���X�N���v�g�ł́A�Ȃ�ׂ����R�ɉ��߂ł��镔����r�����āA��肪�������ɂ����d�g�݂ɂ���Ƃ����l�������悭���f���Ă���B
Copyright © ITmedia, Inc. All Rights Reserved.
��IT eBook