mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
format
This commit is contained in:
parent
b1a76cc7f4
commit
ad528f0de2
@ -10,24 +10,25 @@ PIDFILE=/var/run/dhcpcd/pid
|
||||
[ -f $CONFIG ] || exit 0
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo "Starting dhcpcd..."
|
||||
start-stop-daemon -S -x "$DAEMON" -p "$PIDFILE" -- -f "$CONFIG"
|
||||
;;
|
||||
stop)
|
||||
echo "Stopping dhcpcd..."
|
||||
start-stop-daemon -K -x "$DAEMON" -p "$PIDFILE" -o
|
||||
;;
|
||||
reload|force-reload)
|
||||
echo "Reloading dhcpcd configuration..."
|
||||
"$DAEMON" -s reload
|
||||
;;
|
||||
restart)
|
||||
"$0" stop
|
||||
sleep 1 # Prevent race condition: ensure dhcpcd stops before start.
|
||||
"$0" start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|reload|force-reload}"
|
||||
exit 1
|
||||
start)
|
||||
echo "Starting dhcpcd..."
|
||||
start-stop-daemon -S -x "$DAEMON" -p "$PIDFILE" -- -f "$CONFIG"
|
||||
;;
|
||||
stop)
|
||||
echo "Stopping dhcpcd..."
|
||||
start-stop-daemon -K -x "$DAEMON" -p "$PIDFILE" -o
|
||||
;;
|
||||
reload | force-reload)
|
||||
echo "Reloading dhcpcd configuration..."
|
||||
"$DAEMON" -s reload
|
||||
;;
|
||||
restart)
|
||||
"$0" stop
|
||||
sleep 1 # Prevent race condition: ensure dhcpcd stops before start.
|
||||
"$0" start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|reload|force-reload}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
@ -1,20 +1,20 @@
|
||||
[global]
|
||||
workgroup = WORKGROUP
|
||||
server role = standalone server
|
||||
obey pam restrictions = yes
|
||||
map to guest = Bad User
|
||||
usershare allow guests = yes
|
||||
dfree command = /usr/bin/df
|
||||
workgroup = WORKGROUP
|
||||
server role = standalone server
|
||||
obey pam restrictions = yes
|
||||
map to guest = Bad User
|
||||
usershare allow guests = yes
|
||||
dfree command = /usr/bin/df
|
||||
|
||||
[arpl]
|
||||
browseable = yes
|
||||
public = yes
|
||||
path = /mnt
|
||||
guest ok = yes
|
||||
printable = no
|
||||
read only = no
|
||||
writable = yes
|
||||
create mask = 0600
|
||||
directory mask = 0700
|
||||
force user = root
|
||||
force group = root
|
||||
browseable = yes
|
||||
public = yes
|
||||
path = /mnt
|
||||
guest ok = yes
|
||||
printable = no
|
||||
read only = no
|
||||
writable = yes
|
||||
create mask = 0600
|
||||
directory mask = 0700
|
||||
force user = root
|
||||
force group = root
|
||||
|
@ -38,7 +38,7 @@ PermitRootLogin yes
|
||||
|
||||
# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
|
||||
# but this is overridden so installations will only check .ssh/authorized_keys
|
||||
AuthorizedKeysFile .ssh/authorized_keys
|
||||
AuthorizedKeysFile .ssh/authorized_keys
|
||||
|
||||
#AuthorizedPrincipalsFile none
|
||||
|
||||
@ -106,7 +106,7 @@ AuthorizedKeysFile .ssh/authorized_keys
|
||||
#Banner none
|
||||
|
||||
# override default of no subsystems
|
||||
Subsystem sftp /usr/libexec/sftp-server
|
||||
Subsystem sftp /usr/libexec/sftp-server
|
||||
|
||||
# Example of overriding settings on a per-user basis
|
||||
#Match User anoncvs
|
||||
|
@ -16,18 +16,17 @@ PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
|
||||
|
||||
export EDITOR="/bin/nano"
|
||||
export BOOTLOADER_PATH="/mnt/p1"
|
||||
export SLPART_PATH="/mnt/p2" # Synologic partition
|
||||
export SLPART_PATH="/mnt/p2" # Synologic partition
|
||||
export CACHE_PATH="/mnt/p3"
|
||||
export DSMROOT_PATH="/mnt/dsmroot"
|
||||
export PATH="${PATH}:/opt/arpl"
|
||||
|
||||
if [ -f ${BOOTLOADER_PATH}/.locale ]; then
|
||||
export LANG="`cat ${BOOTLOADER_PATH}/.locale`"
|
||||
export LANG="$(cat ${BOOTLOADER_PATH}/.locale)"
|
||||
fi
|
||||
|
||||
if [ -d /opt/arpl/lang ]; then
|
||||
for F in `ls /opt/arpl/lang/*.mo`
|
||||
do
|
||||
for F in $(ls /opt/arpl/lang/*.mo); do
|
||||
install "${F}" "/usr/share/locale/$(basename $F .mo)/LC_MESSAGES/arpl.mo"
|
||||
done
|
||||
fi
|
||||
|
@ -10,8 +10,8 @@
|
||||
|
||||
# if running bash
|
||||
if [ -n "$BASH_VERSION" ]; then
|
||||
# include .bashrc if it exists
|
||||
if [ -f "$HOME/.bashrc" ]; then
|
||||
. "$HOME/.bashrc"
|
||||
fi
|
||||
# include .bashrc if it exists
|
||||
if [ -f "$HOME/.bashrc" ]; then
|
||||
. "$HOME/.bashrc"
|
||||
fi
|
||||
fi
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env ash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
function use() {
|
||||
echo "Use: ${0} junior|config"
|
||||
|
Loading…
x
Reference in New Issue
Block a user