Lines 40-46
case "$1" in
|
Link Here
|
---|
|
40 |
: |
40 |
: |
41 |
else |
41 |
else |
42 |
if test -x /etc/init.d/samba; then |
42 |
if test -x /etc/init.d/samba; then |
43 |
invoke-rc.d --query samba ## check policy-rc.d |
43 |
## check policy-rc.d |
|
|
44 |
invoke-rc.d --query samba status |
44 |
rc=$? |
45 |
rc=$? |
45 |
if [ "$rc" -eq 104 ] || [ "$rc" -eq 100 ]; then |
46 |
if [ "$rc" -eq 104 ] || [ "$rc" -eq 100 ]; then |
46 |
/etc/init.d/samba restart |
47 |
/etc/init.d/samba restart |