mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
ip pages
This commit is contained in:
parent
36ab1221c2
commit
c05fb35800
13 changed files with 497 additions and 9 deletions
|
@ -1,7 +1,8 @@
|
|||
# Validationg ip address
|
||||
is_ip_valid() {
|
||||
check_ifc=$(/sbin/ifconfig |grep "inet addr:$ip")
|
||||
if [ ! -e "$VESTA/data/ips/$ip" ] || [ -z "$check_ifc" ]; then
|
||||
#check_ifc=$(/sbin/ifconfig |grep "inet addr:$ip")
|
||||
#if [ ! -e "$VESTA/data/ips/$ip" ] || [ -z "$check_ifc" ]; then
|
||||
if [ ! -e "$VESTA/data/ips/$ip" ] ; then
|
||||
echo "Error: IP $ip not exist"
|
||||
log_event "$E_NOTEXIST" "$EVENT"
|
||||
exit $E_NOTEXIST
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue