add make.profile script
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/genlink@2633 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
parent
0e5472854b
commit
b2304cadfc
@ -44,7 +44,9 @@ c5:2345:respawn:/sbin/agetty 38400 tty5 linux
|
|||||||
c6:2345:respawn:/sbin/agetty 38400 tty6 linux
|
c6:2345:respawn:/sbin/agetty 38400 tty6 linux
|
||||||
|
|
||||||
# SERIAL CONSOLES
|
# SERIAL CONSOLES
|
||||||
|
# Set the Seruel console to a higher bitrate for Linkstation
|
||||||
s0:12345:respawn:/sbin/agetty 115200 ttyS0 vt100
|
s0:12345:respawn:/sbin/agetty 115200 ttyS0 vt100
|
||||||
|
# Disable the second console as the micro_evtd is using it for Linkstation
|
||||||
#s1:12345:respawn:/sbin/agetty 9600 ttyS1 vt100
|
#s1:12345:respawn:/sbin/agetty 9600 ttyS1 vt100
|
||||||
|
|
||||||
# What to do at the "Three Finger Salute".
|
# What to do at the "Three Finger Salute".
|
||||||
|
1
Documentation/ls_pro_live/root_overlay/etc/make.profile
Symbolic link
1
Documentation/ls_pro_live/root_overlay/etc/make.profile
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../usr/portage/profiles/default/linux/arm/10.0/server
|
@ -40,6 +40,7 @@ net.ipv4.conf.all.rp_filter = 1
|
|||||||
#net.ipv4.icmp_echo_ignore_broadcasts = 1
|
#net.ipv4.icmp_echo_ignore_broadcasts = 1
|
||||||
|
|
||||||
# Disables the magic-sysrq key
|
# Disables the magic-sysrq key
|
||||||
|
# Set Loggong on on seriel console for Linkstatio
|
||||||
kernel.sysrq = 1
|
kernel.sysrq = 1
|
||||||
# When the kernel panics, automatically reboot in 3 seconds
|
# When the kernel panics, automatically reboot in 3 seconds
|
||||||
#kernel.panic = 3
|
#kernel.panic = 3
|
||||||
@ -53,7 +54,7 @@ kernel.sysrq = 1
|
|||||||
# UDP Port for lock manager
|
# UDP Port for lock manager
|
||||||
#fs.nfs.nlm_udpport = 0
|
#fs.nfs.nlm_udpport = 0
|
||||||
|
|
||||||
# logging settings
|
# logging settings for Buffalo Linkstation
|
||||||
The logging levels are
|
The logging levels are
|
||||||
# 0 system is unusable
|
# 0 system is unusable
|
||||||
# 1 action must be taken immediately
|
# 1 action must be taken immediately
|
||||||
|
@ -1,49 +1,12 @@
|
|||||||
#!/usr/bin/expect -f
|
#!/usr/bin/expect -f
|
||||||
# Password change shell script, tested on Linux and FreeBSD
|
# wrapper to make passwd(1) be non-interactive
|
||||||
# ----------------------------------
|
# username is passed as 1st arg, passwd as 2nd
|
||||||
# It need expect tool. If you are using Linux use following command
|
# Executable only by root
|
||||||
# to install expect
|
|
||||||
# apt-get install expect
|
|
||||||
# FreeBSD user can use ports or following command:
|
|
||||||
# pkg_add -r -v expect
|
|
||||||
# ----------------------------------
|
|
||||||
# If you are using linux change first line
|
|
||||||
# From:
|
|
||||||
#!/usr/local/bin/expect -f
|
|
||||||
# To:
|
|
||||||
#!/usr/bin/expect -f
|
|
||||||
# -----------------------------------------------
|
|
||||||
# Copyright (c) 2006 nixCraft project
|
|
||||||
# This script is licensed under GNU GPL version 2.0 or above
|
|
||||||
# -------------------------------------------------------------------------
|
|
||||||
# This script is part of nixCraft shell script collection (NSSC)
|
|
||||||
# Visit http://bash.cyberciti.biz/ for more information.
|
|
||||||
# -------------------------------------------------------------------------
|
|
||||||
# display usage
|
|
||||||
if {$argc!=2} {
|
|
||||||
send_user "usage: $argv0 username password \n"
|
|
||||||
exit
|
|
||||||
}
|
|
||||||
# script must be run by root user
|
|
||||||
set whoami [exec id -u]
|
|
||||||
if {$whoami!=0} {
|
|
||||||
send_user "You must be a root user to run this script\n"
|
|
||||||
exit
|
|
||||||
}
|
|
||||||
#
|
|
||||||
set timeout -1
|
|
||||||
match_max 100000
|
|
||||||
# stopre password
|
|
||||||
set password [lindex $argv 1]
|
set password [lindex $argv 1]
|
||||||
# username
|
spawn passwd [lindex $argv 0]
|
||||||
set user [lindex $argv 0]
|
expect "password:"
|
||||||
# opem shell
|
|
||||||
spawn $env(SHELL)
|
|
||||||
# send passwd command
|
|
||||||
send -- "passwd $user\r"
|
|
||||||
expect "assword:"
|
|
||||||
send "$password\r"
|
send "$password\r"
|
||||||
expect "assword:"
|
expect "password:"
|
||||||
send "$password\r"
|
send "$password\r"
|
||||||
send "\r"
|
|
||||||
expect eof
|
expect eof
|
Loading…
Reference in New Issue
Block a user