开源 企业版 高校版 私有云 模力方舟 AI 队友
代码拉取完成,页面将自动刷新
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
已有帐号? 立即登录
文件
master
分支 (99)
标签 (392)
master
v4_1_esv
uname-n
227-remove-client-and-relay
231-final-release-of-4-4-3
relnotes-review
229-4-4-2-final-release-notes
223-dhcrelay-giaddr
226-docs-trivial-type-in-dhcpd-conf-5
226-docs-trivial-typo-in-dhcpd-conf-5-manpage
pemensik/dhcp-ldap-gssapi-principal
225-dev-guide-atf-ubuntu21.04
experiments/dug2
91-makej-fix
release-checklist
v4_4
release-4-4-3
221-relnotes-update-4.4.3
76-add-a-version-of-dhcpctl_wait_completion-that-accepts-a-timeout
148-omshell-fails-when-using-sha512-256-as-the-option
v4_4_3
v4_4_3b1
v4_1_esv_r16_p1
v4_4_2_p1
list
v4_4_2_f1
v4_1_esv_r16
v4_4_2
v4_1_esv_r16b1_f1
v4_4_2b1_f2
v4_4_2b1_f1
v4_1_esv_r16b1
v4_4_2b1
v4_4_1_f1
v4_3_6_p1_f1
v4_4_1
v4_3_6_p1_f0
v4_1_esv_r15_p1_f0
v4_4_0_f1
v4_4_0
master
分支 (99)
标签 (392)
master
v4_1_esv
uname-n
227-remove-client-and-relay
231-final-release-of-4-4-3
relnotes-review
229-4-4-2-final-release-notes
223-dhcrelay-giaddr
226-docs-trivial-type-in-dhcpd-conf-5
226-docs-trivial-typo-in-dhcpd-conf-5-manpage
pemensik/dhcp-ldap-gssapi-principal
225-dev-guide-atf-ubuntu21.04
experiments/dug2
91-makej-fix
release-checklist
v4_4
release-4-4-3
221-relnotes-update-4.4.3
76-add-a-version-of-dhcpctl_wait_completion-that-accepts-a-timeout
148-omshell-fails-when-using-sha512-256-as-the-option
v4_4_3
v4_4_3b1
v4_1_esv_r16_p1
v4_4_2_p1
list
v4_4_2_f1
v4_1_esv_r16
v4_4_2
v4_1_esv_r16b1_f1
v4_4_2b1_f2
v4_4_2b1_f1
v4_1_esv_r16b1
v4_4_2b1
v4_4_1_f1
v4_3_6_p1_f1
v4_4_1
v4_3_6_p1_f0
v4_1_esv_r15_p1_f0
v4_4_0_f1
v4_4_0
克隆/下载
克隆/下载
提示
下载代码请复制以下命令到终端执行
为确保你提交的代码身份被 Gitee 正确识别,请执行以下命令完成配置
初次使用 SSH 协议进行代码克隆、推送等操作时,需按下述提示完成 SSH 配置
1 生成 RSA 密钥
2 获取 RSA 公钥内容,并配置到 SSH公钥
在 Gitee 上使用 SVN,请访问 使用指南
使用 HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # 私人令牌
master
分支 (99)
标签 (392)
master
v4_1_esv
uname-n
227-remove-client-and-relay
231-final-release-of-4-4-3
relnotes-review
229-4-4-2-final-release-notes
223-dhcrelay-giaddr
226-docs-trivial-type-in-dhcpd-conf-5
226-docs-trivial-typo-in-dhcpd-conf-5-manpage
pemensik/dhcp-ldap-gssapi-principal
225-dev-guide-atf-ubuntu21.04
experiments/dug2
91-makej-fix
release-checklist
v4_4
release-4-4-3
221-relnotes-update-4.4.3
76-add-a-version-of-dhcpctl_wait_completion-that-accepts-a-timeout
148-omshell-fails-when-using-sha512-256-as-the-option
v4_4_3
v4_4_3b1
v4_1_esv_r16_p1
v4_4_2_p1
list
v4_4_2_f1
v4_1_esv_r16
v4_4_2
v4_1_esv_r16b1_f1
v4_4_2b1_f2
v4_4_2b1_f1
v4_1_esv_r16b1
v4_4_2b1
v4_4_1_f1
v4_3_6_p1_f1
v4_4_1
v4_3_6_p1_f0
v4_1_esv_r15_p1_f0
v4_4_0_f1
v4_4_0
dhcp
/
client
/
scripts
/
nextstep
dhcp
/
client
/
scripts
/
nextstep
nextstep 2.03 KB
一键复制 编辑 原始数据 按行查看 历史
Shawn Routhier 提交于 2010年09月15日 06:20 +08:00 . Minor changes for scripts, configure.ac and Makefiles
#!/bin/sh
#
# simplified dhclient-script for NeXTSTEP/OPENSTEP
#
# removed a lot of the cruft from the netbsd version since NeXTSTEP doesn't
# support aliases and lots of things were breaking for no good reason
#
# 14 Sep 1997, David W. Young
#
if [ x$reason = xPREINIT ]; then
ifconfig $interface inet 0.0.0.0 netmask 0.0.0.0 up >/dev/null 2>&1
exit 0
fi
if [ x$reason = xBOUND ] || [ x$reason = xRENEW ] || \
[ x$reason = xREBIND ] || [ x$reason = xREBOOT ]; then
current_hostname=`hostname`
if [ x$current_hostname = x ] || \
[ x$current_hostname = x$old_host_name ]; then
if [ x$current_hostname = x ] || \
[ x$new_host_name != x$old_host_name ]; then
hostname $new_host_name
fi
fi
if [ x$old_ip_address != x ] && [ x$old_ip_address != x$new_ip_address ]
then
ifconfig $interface $new_ip_address netmask $new_subnet_mask \
>/dev/null 2>&1
route add $new_ip_address 127.1 0 >/dev/null 2>&1
for router in $new_routers ; do
route add default $router 1 >/dev/null 2>&1
done
fi
if [ x"$new_domain_name_servers" != x ]; then
cat /dev/null > /etc/resolv.conf.dhclient
if [ "x$new_domain_search" != x ]; then
echo search $new_domain_search >> /etc/resolv.conf.dhclient
elif [ "x$new_domain_name" != x ]; then
# Note that the DHCP 'Domain Name Option' is really just a domain
# name, and that this practice of using the domain name option as
# a search path is both nonstandard and deprecated.
echo search $new_domain_name >> /etc/resolv.conf.dhclient
fi
for nameserver in $new_domain_name_servers; do
echo nameserver $nameserver >>/etc/resolv.conf.dhclient
done
mv /etc/resolv.conf.dhclient /etc/resolv.conf
fi
exit 0
fi
if [ x$reason = xEXPIRE ] || [ x$reason = xFAIL ] || [ x$reason = xRELEASE ] \
|| [ x$reason = xSTOP ]; then
if [ x$old_ip_address != x ]; then
route delete $old_ip_address 127.1 >/dev/null 2>&1
for $router in $old_routers ; do
route delete default $router >/dev/null 2>&1
done
fi
exit 0
fi
Loading...
举报
举报成功
我们将于2个工作日内通过站内信反馈结果给你!
请认真填写举报原因,尽可能描述详细。
请选择举报类型
取消
发送
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

简介

fork from https://gitlab.isc.org/isc-projects/dhcp
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
编辑仓库简介
简介内容
主页
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/source-code-sync/dhcp.git
git@gitee.com:source-code-sync/dhcp.git
source-code-sync
dhcp
dhcp
master
点此查找更多帮助

搜索帮助

评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册

AltStyle によって変換されたページ (->オリジナル) /