mirror of
				https://github.com/teddysun/across.git
				synced 2025-11-04 10:45:33 +08:00 
			
		
		
		
	update comment
This commit is contained in:
		
							
								
								
									
										10
									
								
								l2tp.sh
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								l2tp.sh
									
									
									
									
									
								
							@@ -782,11 +782,11 @@ list_users(){
 | 
				
			|||||||
        echo "Error: /etc/ppp/chap-secrets file not found."
 | 
					        echo "Error: /etc/ppp/chap-secrets file not found."
 | 
				
			||||||
        exit 1
 | 
					        exit 1
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
    echo -e "+---------------+---------------+"
 | 
					    local line="+-------------------------------------------+\n"
 | 
				
			||||||
    echo -e "| Username\t| Password\t|"
 | 
					    local string=%20s
 | 
				
			||||||
    echo -e "+---------------+---------------+"
 | 
					    printf "${line}|${string} |${string} |\n${line}" Username Password
 | 
				
			||||||
    grep -v "^#" /etc/ppp/chap-secrets | awk '{print "| "$1"\t| "$3"\t|"}'
 | 
					    grep -v "^#" /etc/ppp/chap-secrets | awk '{printf "|'${string}' |'${string}' |\n", $1,$3}'
 | 
				
			||||||
    echo -e "+---------------+---------------+"
 | 
					    printf ${line}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
add_user(){
 | 
					add_user(){
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user