File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 11The MIT License (MIT)
22
3- Copyright (c) 2015 Alexander Williams, Unscramble <license@unscramble.jp>
3+ Copyright (c) 2015-2016 Alexander Williams, Unscramble <license@unscramble.jp>
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 33# TinyCore static/dhcp networking
44#
55# MIT License
6- # Copyright (c) 2015 Alexander Williams, Unscramble <license@unscramble.jp>
6+ # Copyright (c) 2015-2016 Alexander Williams, Unscramble <license@unscramble.jp>
77
88set -a
99
Original file line number Diff line number Diff line change 33# TinyCore static/dhcp networking
44#
55# MIT License
6- # Copyright (c) 2015 Alexander Williams, Unscramble <license@unscramble.jp>
6+ # Copyright (c) 2015-2016 Alexander Williams, Unscramble <license@unscramble.jp>
77
88pid=" /var/run/udhcpc.${interface} .pid"
99
10+ if [ -f " $pid " ]; then
11+ kill ` cat $pid `
12+ fi
13+
1014/opt/udhcpc.script deconfig
11- /sbin/udhcpc -b -i $interface -h $( /bin/hostname) -p $pid -s /opt/udhcpc.script > /dev/null 2>&1 &
15+ /sbin/udhcpc -b -i $interface -x hostname: $( /bin/hostname) -p $pid -s /opt/udhcpc.script > /dev/null 2>&1 &
Original file line number Diff line number Diff line change 33# TinyCore static/dhcp networking
44#
55# MIT License
6- # Copyright (c) 2015 Alexander Williams, Unscramble <license@unscramble.jp>
6+ # Copyright (c) 2015-2016 Alexander Williams, Unscramble <license@unscramble.jp>
77
88pid=" /var/run/udhcpc.${interface} .pid"
99
@@ -12,4 +12,5 @@ if [ -f "$pid" ]; then
1212 kill ` cat $pid `
1313fi
1414
15+ /opt/udhcpc.script deconfig
1516/opt/udhcpc.script renew
You can’t perform that action at this time.
0 commit comments